Sharing learned information among robots

ABSTRACT

Methods, systems, and apparatus, including computer programs encoded on computer storage media, for sharing learned information among robots. In some implementations, a robot obtains sensor data indicating characteristics of an object. The robot determines a classification for the object and generates an embedding for the object using a machine learning model stored by the robot. The robot stores the generated embedding and data indicating the classification for the object. The robot sends the generated embedding and the data indicating the classification to a server system. The robot receives, from the server system, an embedding generated by a second robot and a corresponding classification. The robot stores the received embedding and the corresponding classification in the local cache of the robot. The robot may then use the information in the cache to identify objects.

BACKGROUND

This specification relates generally to sharing learned informationamong robots.

Robots can be configured to perform a variety of tasks. Robots generallyneed some form of perception to complete a task, such as the recognitionor identification of an object. Robots may encounter objects andsituations that their programming or training does not prepare them tohandle appropriately. For example, although a robot may be able torecognize many different types of objects, it is likely that the robotwill likely encounter new objects that it does not recognize.

SUMMARY

In some implementations, robots can perform processes to learn newinformation and new abilities from situations they encounter. Techniquesdisclosed herein can enable a robot to incorporate new information sothat the robot learns almost instantaneously from user feedback or othersources of information. For example, a robot can have a local cachewhere certain types of learned information is stored. When the robotacquires new information, such as the classification for a previouslyunknown object, the robot can store a representation of the newinformation in the cache to make the information immediately availablefor the robot to use. This technique can allow near-instantaneouslearning by a robot since the computational demands for incorporatingnew information, e.g., generating the representation and saving it in acache accessed by robot systems, are extremely low. For example, therepresentation may have already been computed as part of the continuousonboard inference process of the robot. As a result, when a userprovides a robot with a classification for a previously unknown object,the robot may store the information and apply it to current and futuretasks with minimal delay.

In addition, individual robots can share learned information with otherrobots, allowing each robot in a fleet of robots to quickly acquire thecombined learning from all of the robots in the fleet. Learnedinformation can be distributed frequently to the robots, and withoutre-training or modifying machine learning models used by the robots. Forexample, each robot in a fleet may communicate with a server system toupload representations of recently learned information, such asclassifications of objects that the robots observed and previously couldnot identify but have since learned to classify appropriately. Theserver system collects the representations, processes them, anddistributes the combined set of representations to the robots in thefleet. This process of learning, uploading, and distributingrepresentations of information learned by robots can be performed on anongoing basis, for example, periodically on an hourly, daily, or weeklybasis, or on a continuous basis with representations being distributedamong robots as soon as they are learned. The process of sharingrepresentations among robots allows fleet-wide learning in a rapid andefficient manner. In particular, newly learned information may bedistributed and used by the robots in much less time than it would taketo update a machine learning model to reflect the same information.

The learned information collected from multiple robots can be used tore-train or update machine learning models, which can then bedistributed to each of the robots. For example, the server canperiodically update a machine learning model used by the robots, at aninterval significantly longer than the interval for sharing learningrepresentations among robots. For example, if representations are shareddaily among robots, the machine learning model may be updated each week,every two weeks, or each month. The updated machine learning model canincorporate the combined set of robot learning that occurred across thefleet over the previous interval, e.g., the last week or month.

In some implementations, the server can transmit the updated machinelearning model to the fleet at a weekly or a fortnightly basis. Theserver can also provide update learned information more frequently, asembeddings or in other representations, each time a new set of robotlearning is received by the server. Robots in the fleet can store thislearned information in a cache and use it alongside the most recentversion of the machine learning model. The receipt of new informationfor the cache can fine-tune the behavior of an overall perception systemfor each robot in the fleet on a daily basis or each time a new set ofrobot learning is provided to the robot. Thus, robots can use theupdated machine learning model to incorporate the learning from thefleet, and can clear their local caches since the cached information hasbeen incorporated into the model.

In general, many aspects of robot's knowledge and abilities may beprovided by trained machine learning models, such as neural networks.Although these models are powerful and often efficient to run, trainingor updating machine learning models is often a time-consuming andcomputationally-intensive process, and the training process frequentlyrequires large sets of training data to be effective. As an example,neural networks are often trained with an iterative process that usesmany training examples to determine appropriate neural networkparameters. In some cases, a complex neural network model, such as oneconfigured to identify thousands of different types of items, mayrequire days or even weeks to train, even when using distributedcomputing techniques. In many instances, individual robots simply do nothave the battery power or computational power to update the training ofa machine learning model in a reasonable amount of time, much less inreal time. If a user provides a robot with the classification of a newobject, it would be ideal for the robot to retain and use thatclassification going forward without delay, especially since the usermay subsequently issue commands to the robot regarding the object.

As discussed above and further below, the present techniques may enablea robot to encode learned information, such as object characteristicsand a corresponding classification, as a discrete representation in acache of the robot. The robot can be designed to use the cache in itsperception processing or other processing, so that saving therepresentation allows the robot to immediately apply the new informationto tasks. Thus, individual robots may be able to learn and expand theircapabilities in real time. In addition, the representations can beshared among robots to allow all robots in a fleet to quickly andefficiently acquire and use the new information. In the meantime, whilethe robots use the shared representations and thus already benefit fromthe collective learning of the fleet, a remote computing system canupdate the machine learning models based on the newly learnedinformation for the fleet. From time to time, the computing systemdistributes updated models to the robots, where the updated modelsincorporate the learning compiled across the fleet over a period oftime. Nevertheless, due to the ongoing sharing of representations, therobots can apply the learned information long before it has beenincorporated into a model update.

In some implementations, the representation of information learned by arobot can be an embedding generated using a machine learning model. Forexample, the embedding may represent information derived from an outputlayer of a neural network model or from a hidden layer of the neuralnetwork model. When a set of input information, such as sensor datadescribing an object, is provided to the machine learning model, theprocessing of the machine learning model may encode the information in aform that is used directly as an embedding, or is further processed togenerate the embedding. As a result, the embedding may be a compressedrepresentation of an object or other observation, where the specificvalues of the embedding may depend on the structure and training stateof the machine learning model used to generate the embedding.

In one general aspect, a method includes: obtaining, by a robot, sensordata indicating characteristics of an object; determining, by the robot,a classification for the object; generating, by the robot, a firstembedding for the object using a machine learning model stored by therobot; storing, by the robot, the generated first embedding and dataindicating the classification for the object in a local cache of therobot; sending, by the robot, the generated first embedding and the dataindicating the classification to a server system over a communicationnetwork; receiving, by the robot, a second embedding and a correspondingclassification from the server system over the communication network,where the received second embedding is generated by a second robot andcorresponds to a second object; and storing, by the robot, the receivedsecond embedding and a corresponding classification in the local cacheof the robot.

The foregoing and other embodiments can each optionally include one ormore of the following features, alone or in combination. For example,one embodiment includes all the following features in combination.

In some implementations, the method includes, using, by the robot, thefirst embedding or the second embedding in the local cache to recognizeone or more objects in an environment of the robot.

In some implementations, the method further includes generating, by therobot, sensor data describing a particular object in the environment ofthe robot.

In some implementations, the method includes generating, by the robot,an embedding for the particular object using the machine learning modeland the sensor data describing the particular object. The methodincludes comparing, by the robot, the embedding for the particularobject with the first embedding and the second embedding.

In some implementations, the method includes assigning, by the robot, aclassification for the particular object based on the comparison of theembedding for the particular object with the first embedding and thesecond embedding.

In some implementations, the method includes receiving, by the robot, asecond machine learning model from the server system over thecommunication network.

In some implementations, the method includes using, by the robot, thesecond machine learning model to recognize one or more objects.

In some implementations, the method includes removing, from the localcache of the robot, embeddings generated using the first machinelearning model.

In some implementations, the method includes designating the generatedembedding for sharing with other robots.

In some implementations, the method includes sending the generatedembedding with a label or metadata designating that the embedding shouldbe shared or sending the generated embedding using an applicationprogramming interface for sharing embeddings.

In some implementations, the method further includes storing, by therobot, the sensor data used to generate input to the machine learningmodel used to generate the embedding.

In some implementations, the method includes generating the firstembedding based on processing feature data, extracted from the sensordata for the object, using the machine learning model.

In some implementations, the machine learning model is a neural networkmodel, and the first embedding is derived from output at an output layerof the neural network mode.

In some implementations, the machine learning model is a neural networkmodel, the first embedding is derived from data indicating activationsat a hidden layer of the neural network model.

In another general aspect, a method includes: receiving, by the one ormore computers, object classification examples from a plurality ofrobots, where each object classification example includes (i) anembedding that a robot generated using a machine learning model, and(ii) an object classification corresponding to the embedding;evaluating, by the one or more computers, the object classificationexamples based on a similarity of the embeddings of the received objectclassification examples with other embeddings; selecting, by the one ormore computers, a subset of the object classification examples based onthe evaluation of the quality of the embeddings; and distributing, bythe one or more computers, the subset of the object classificationexamples to the robots in the plurality of robots.

Implementations may include one or more of the following features. Forexample, in some implementations, for each of the object classificationexamples, the embedding is generated by a robot based on sensor datagenerated by the robot describing an object detected by sensors of therobot, and the corresponding object classification for the embeddingindicates a classification for the detected object. The embeddings ofthe respective classification examples include embeddings generated bydifferent robots that each use a particular machine learning modelhaving a particular training state to generate the embeddings.Distributing the subset of the classification examples includesdistributing the classifications to multiple robots that each store acopy of the same particular machine learning model having the particulartraining state.

In some implementations, distributing the subset of the classificationexamples includes transmitting, to each of the robots in the pluralityof robots, the classification examples in the subset and designating thetransmitted classification examples to be stored in a local cache ofeach of the robots.

In some implementations, distributing the subset of the classificationexamples includes synchronizing local caches of the robots in theplurality of robots so that each of the plurality of robots stores eachof the classification examples in the selected subset in a local cacheof the robot.

In some implementations, the method includes: training a second machinelearning model using the selected subset of the classification examplesand distributing the trained machine learning model to the robots in theplurality of robots.

In some implementations, training the second machine learning modelincludes generating an updated version of the machine learning modelused to generate the embeddings. Distributing the trained machinelearning model includes distributing the updated version of the machinelearning model as a replacement to a machine learning model stored ateach of the robots in the plurality of robots.

In some implementations, the method includes providing, to each robot inthe plurality of robots, an instruction to remove the distributedclassification examples from a local cache of the robot.

In some implementations, the method includes receiving, for each of theobject classification examples, sensor data that describes the objectcorresponding to the object classification example. Training the secondmachine learning model includes training the second machine learningmodel based on the received sensor data received for the objectclassification examples.

In some implementations, the method includes receiving, for each of theobject classification examples, sensor data, generated by a robot, thatdescribes the object corresponding to the object classification example.Evaluating the object classification examples includes evaluating thequality of a classification example based on the received sensor data.

In some implementations, evaluating the object classification examplesincludes determining, for a particular embedding of a particular objectclassification example, a level of similarity of the particularembedding with respect to one or more other embeddings having a sameobject classification as the particular object classification example.Selecting the subset of the object classification examples includesselecting the particular object classification example to be included inthe subset based on determining that the level of similarity satisfies athreshold.

In some implementations, evaluating the object classification examplesincludes determining, for a particular embedding of a particular objectclassification example, a level of similarity of the particularembedding with respect to one or more other embeddings having adifferent object classification from the particular objectclassification example. Selecting the subset of the objectclassification examples includes excluding the particular objectclassification example from subset based on determining that the levelof similarity satisfies a threshold.

In some implementations, evaluating the object classification examplesincludes determining, for a particular embedding of a particular objectclassification example, a level of similarity of the particularembedding with respect to one or more other embeddings, where the levelof similarity indicates a distance between the particular embedding andthe one or more other embeddings in a vector space.

In some implementations, evaluating the object classification examplesincludes determining, for a particular embedding of a particular objectclassification example, a quality score representing a likelihood thatthe object classification matches the object corresponding to theparticular object classification example. Selecting the subset of theobject classification examples includes selecting the particular objectclassification example to include in the subset based on the qualityscore satisfying a threshold.

In some implementations, evaluating the object classification examplesincludes determining, for a particular embedding of a particular objectclassification example, a quality score based on: analyzing a levelquality of sensor data provided by the plurality of robots; analyzinghow the object classification examples adjust an overall accuracy of themachine learning model; and analyzing previous levels of quality ofother object classification examples provided by the plurality ofrobots.

In some implementations, analyzing the level of quality of the sensordata provided by the plurality of robots further includes: determining amatch between the sensor data and the embedding by providing the sensordata to the machine learning model; comparing an output embedding fromthe machine learning model to the embedding; comparing an outputclassification label from the machine learning model to the objectclassification corresponding to the embedding; and in response todetermining that the output classification label from the machinelearning model does not match the object classification corresponding tothe embedding, retraining the machine learning model to detect theembedding and produce a correct classification label that matches theobject classification.

In another general aspect, a method includes: storing, by a robot, firstembeddings generated using a first machine learning model, where therobot stores the first embeddings in a cache of the robot, where thefirst embeddings include one or more first private embeddings that arenot shared with other robots; receiving, by the robot, a second machinelearning model from a server system over a communication network;generating, by the robot, a second private embedding for each of the oneor more first private embeddings in the cache, where each of the secondprivate embeddings is generated using the second machine learning model;adding, by the robot, the second private embeddings to the cache of therobot; and removing, by the robot, the one or more first privateembeddings from the cache of the robot.

Implementations may include one or more of the following features. Forexample, in some implementations, the first embeddings include one ormore public embeddings that are shared with a server system. The methodincludes: determining that a particular embedding is a public embedding;and after receiving the second machine learning model, removing theparticular embedding from the cache of the robot based on determiningthat the particular embedding is a public embedding.

In some implementations, the method includes storing, by the robot,sensor data used to generate the one or more first private embeddings.Generating the second private embedding for each of the one or morefirst private embeddings in the cache includes generating, using thesecond machine learning model, each of the second private embeddingsfrom the stored sensor data used to generate the one or more firstprivate embeddings. The method further includes storing the secondprivate embeddings in the cache of the robot.

In some implementations, generating the second private embeddings fromthe stored sensor data includes generating a second private embeddingfor an object by inputting, to the second machine learning model,feature values derived from the sensor data used to generate the firstprivate embedding for the object.

In some implementations, the method includes: accessing, by the robot,metadata associated with a particular embedding of the first embeddings;and determining that the particular embedding is a private embeddingthat is not shared with the server system by analyzing the metadataassociated with the particular embedding against one or more sharingrules that are stored by the robot.

In some implementations, the first embeddings include one or more firstpublic embeddings in addition to the one or more first privateembeddings. The method includes providing, by the robot, the one or morefirst public embeddings to the server system and not providing the oneor more first private embeddings to the server system.

In some implementations, the method includes: determining, for each ofthe first embeddings, whether to store sensor data used to generate thefirst embedding, where the determination whether to store sensor dataused to generate a first embedding is based on whether the firstembedding is private or public; and based on the determining, storing,by the robot, sensor data for each of the one or more first privateembeddings, and not storing sensor data for the one or more first publicembeddings.

In some implementations, the first embeddings generated by a firstmachine learning model include one or more received embeddings that werereceived by the robot from the server system over a communicationnetwork. The method further includes determining that a particularembedding of the first embeddings is one of the received embeddings; andafter receiving the second machine learning model, removing theparticular embedding from the cache based on determining that theparticular embedding is one of the received embeddings.

In some implementations, the cache is a local cache stored on a datastorage device of the robot.

In some implementations, the first machine learning model is a firstneural network model, and the second machine learning model is a secondneural network model.

In some implementations, the method includes: obtaining, by the robot,sensor data describing an object; generating, by the robot, an embeddingfor the object based on the sensor data; determining, by the robot,whether to designate the embedding as a private embedding or a publicembedding; and storing, by the robot, the embedding and data designatingwhether the embedding is a private embedding or a public embedding.

In some implementations, determining whether to designate the embeddingas a private embedding or a public embedding includes: determining alocation of the object or the robot; determining that the location iswithin a predetermined area for which information is not shared; andbased on determining that the location is within the predetermined area,designating the embedding as a private embedding.

In some implementations, determining whether to designate the embeddingas a private embedding or a public embedding includes: determining anobject type for the object observed by the robot; determining that theobject type is one of a predetermined set of object types; anddetermining whether to designate the embedding as a private embeddingbased on determining that the object type is one of the predeterminedset of object types.

In some implementations, determining whether to designate the embeddingas a private embedding or a public embedding includes: accessing asharing rule indicating one or more restrictions on the sharing ofinformation obtained by the robot, where the one or more restrictionslimit sharing of information (i) observed by the robot at a time orplace, or (ii) describing objects having an object type or objectcharacteristic; determining, based on the sensor data for the object,that the sharing rules restrict sharing of information for the objectdescribed by the sharing data; and based on determining that the sharingrules restrict sharing of information for the object, designating theembedding for the object as a private embedding.

In some implementations, the method includes receiving user inputindicating one or more criteria comprising a time, place, object type,or object characteristic for which sharing of information is restricted;and storing a sharing rule that designates embeddings for objectsmeeting the one or more criteria as private embeddings. Determiningwhether to designate the embedding as a private embedding or a publicembedding includes determining whether the embedding satisfies the oneor more criteria.

Other embodiments of these and other aspects of the disclosure includecorresponding systems, apparatus, and computer programs, configured toperform the actions of the methods, encoded on computer storage devices.A system of one or more computers can be so configured by virtue ofsoftware, firmware, hardware, or a combination of them installed on thesystem that in operation cause the system to perform the actions. One ormore computer programs can be so configured by virtue havinginstructions that, when executed by data processing apparatus, cause theapparatus to perform the actions.

The details of one or more embodiments of the subject matter of thisspecification are set forth in the accompanying drawings and thedescription below. Other features, aspects, and advantages of thesubject matter will become apparent from the description, the drawings,and the claims.

BRIEF DESCRIPTION OF THE DRAWINGS

FIG. 1 is a block diagram that illustrates an example of a system forsharing learned information among robots.

FIG. 2 is a block diagram that illustrates an example of a system fortraining a robot to recognize an object.

FIG. 3 is a block diagram that illustrates an example of a robotrecognizing an object.

FIG. 4 is a block diagram that illustrates an example of another systemfor sharing learned information among robots.

FIG. 5 is a block diagram that illustrates an example of a system forproviding updated machine learning models to robots.

FIG. 6 is a flow diagram that illustrates an example of a process forsharing learned information among robots.

FIG. 7 is a block diagram that illustrates an example of a system forselectively sharing learned information among robots.

FIG. 8 is a block diagram that illustrates an example of a system forassessing the quality of information learned by robots.

FIG. 9 is a block diagram that illustrates an example of a system fortesting a machine learning model.

FIG. 10 is a flowchart that illustrates an example of a process forassessing and sharing information learned by robots.

FIG. 11 is a diagram that illustrates an example system for enhancingrobot learning.

FIG. 12 is a diagram that illustrates an example system for selectivelysharing information among a fleet of robots.

FIG. 13 is a diagram that illustrates an example system for regenerationand storage of embeddings by a robot.

FIG. 14 is a flow chart that illustrates a process for enhancing robotlearning.

Like reference numbers and designations in the various drawings indicatelike elements.

DETAILED DESCRIPTION

FIG. 1 is a block diagram that illustrates an example of a system 100for sharing learned information among robots. The system 100 includes arobots 104A-104D, a client device 108, a network 110, a server system112, and a database 114. The server system 112 may include one or morecomputers connected locally or over a network, where the network mayinclude one or more public or private networks and may include theInternet. The example shows a human user 106 who interacts with therobots 104A-104D. The example of FIG. 1 shows the robots 104A-104D in ahouse 102, but the robots 104A-104D may be alternatively located indifferent houses or in other types of buildings or areas. FIG. 1illustrates various operations in stages (A) to (E) which can beperformed in the sequence indicated or in another sequence.

In general, a robot refers to a programmable machine that can be capableof performing a series of actions at least partially autonomously. Forexample, a robot may be capable of carrying out tasks that involveinteracting with or changing the physical surroundings of the robot(e.g., arranging or manipulating objects). Besides responding to inputsand commands from humans, robots may initiate actions of their ownaccord, based on their programming and the conditions they detect. Arobot may include components for interacting with (e.g., physicallymanipulating) objects in its environment. For example, a robot mayinclude an arm with actuator to grasp or otherwise move objects. Forexample, the actuator may be a robotic hand with finger-like elements tograsp objects. A robot can also include components to allow locomotion.Examples include motorized elements, such as wheels, legs, continuoustracks, and so on, to allow the robot to travel from one location toanother. The robot may include navigation components allowing it to seta course and travel along a self-directed path. The robot may includesensory capabilities allowing the robot to perceive its surroundingenvironment. The robot can include body components such as a chassis andother connecting components. The body components may allow various typesof motion of robot components relative to each other, such as rotating,swiveling, shifting, etc. Robots can include various other components,such as batteries to power the robot, transmitters, receivers, sensors,data processors, and memory to store programmed instructions for therobot.

In the example of FIG. 1, a fleet of robots uses distributed learning inorder to learn to identify new objects. The robot fleet does not requirethat every robot in the fleet to be trained individually to identify newobjects. Rather, the robot fleet employs a distributed learningtechnique, where one robot can learn to identify an object and producean embedding that corresponds to the object. That robot can share theembedding with the other robots over the communication network in amanner that allows all robots in the fleet to identify the newlyidentified object. Providing the embedding and correspondingclassification information allows robots that receive the data toinstantly learn to classify the object. The technique can use machinelearning models to produce an embedding describing the characteristicsof the identified object. This may be beneficial because user need onlytrain one robot to identify an object rather than each robot. Inaddition, sharing embeddings among robots preserves processing resourcesby allowing robots to learn without having to retrain the machinelearning model on each robot.

Any of various types of machine learning models can be used. Examplesinclude neural networks, maximum-entropy classifiers, decision trees,random forest classifiers, boost trees, logistic regression models, andreinforcement learning models. Machine learning models can be trainedusing supervised or unsupervised training. Machine learning models canhave parameters learned or trained based on various different examples,which may come from a variety of sources.

In some implementations, sharing can be performed to all robots in thefleet. Alternatively, sharing can be performed to robots within aparticular organization. For example, robot 104A may be associated witha house and robot 104B may be associated with a factory. In addition,the sharing can be performed to robots in a particular domain. Forexample, robot 104C may be a hospital robot and robot 104D may be ahotel robot. In some implementations, sharing can be performed amongspecific groups of robots via access controlled lists managed by theserver system 112. In other words, the server system 112 may selectivelyshare learned information only among robots that have certaincommonalities, e.g., the same hardware model, the same role orresponsibility, the same type of location, the same owner, the samegroup or fleet identifier, and so on.

In some implementations, each robot in the robot fleet is located in asingle location, such as a house 102 or a factory. In otherimplementations, the robots in the robot fleet are located in differentlocations or settings. For example, robot 104A may be located at house102; robot 104B may be located at a house across the street from house102; robot 104C may be located at a grocery store; and, robot 104D maybe located at an airport. The robots located at different locations cancommunicate with one another through communication network 110. Therobots in a fleet may be represent a large group of robots distributedacross many locations, such as all robots provided by a vendor, with therobots owned or used by many different users in different settings.

In some implementations, robots in the robot fleet are programmed toassist humans in the home. For example, a human may issue aninstructional command to a first robot to request for the retrieval ofthe human's cell phone. In response, the first robot can search throughthe home for the human's cell phone, identify the cell phone bydistinguishing it from other household items, and return the cell phoneto the human. While the robots may include object recognition modelsthat enable the robots to recognize household items, the trained modelmay not be able to classify some types of objects. When objectrecognition models do not enable a robot to identify an object, a humanuser may train the first robot on characteristics of the object to allowthe first robot to be able locate and return the object. Once the firstrobot has learned to identify an object, it can share the learnedinformation with other robots. Then, if a user asks a second robot toretrieve the same object or the same type of object, the second robotmay use the data received from the first robot to identify that object.This way, even if the second robot's perception models did not recognizethe object and even if the second robot was never directly trained torecognize the object, the second robot can still recognize the objectbased on the shared learning from the first robot.

The process of distributed learning among a robot fleet can be performedrapidly by sharing embeddings among the robots. An embedding may be aset of values, such as a vector, code, file, or other data, thatrepresents characteristics of or a kind of fingerprint for an object.The embedding can be generated by providing data describing the object(e.g., features extracted from sensor data describing the object) to aperception model, such as a machine learning object recognition model.For example, the embedding may be a multi-dimensional vector or numbersrepresenting an encoded form of characteristics of the object, where theencoding is based on processing of object feature data with a trainedmachine learning. A robot that encounters a new object and learns thecorrect classification shares the embedding for the object with the restof the fleet, so that each robot does not need to be individuallytrained to identify the object. As a result, when a human trains asingle robot to identify an object, the system enables the other robotsto also be able to identify the object, due to receiving thecorresponding embedding and classification information.

For instance, a human may train the first robot to identify a coffeemug. The human can hold up the coffee mug in front of the first robotfor the first robot's sensors to capture the characteristics of thecoffee mug. The first robot can acquire images of the coffee mug fromvarious angles to determine characteristics of the coffee mug. The firstrobot can then use these characteristics to produce an embedding that isstored in a local cache of the first robot along with data specifyingthat the embedding represents a coffee mug. Once the embedding andclassification are stored, the first robot will be able to instantly usethe new information to recognize the mug in the future. As a result, thenext time a human requests the first robot to retrieve a coffee mug, thefirst robot can identify and retrieve the coffee mug by comparing thestored embedding for the coffee mug with embeddings that first robotproduces from live sensor data describing the first robot's currentenvironment.

In general, the robot learning techniques allow for immediate locallearning by a single robot, as well as sharing learning with otherrobots. A user can unlock object types from a master list of items,e.g., a knowledge graph, for use on a single robot. If, after unlockingan object type, the robot still cannot correctly identify an object, theuser can teach the robot to classify an object. This process can involveshowing the robot an example or “instance” of the object type. Thislearned example is referred to as a “teaching” and can be expressed asan embedding and corresponding classification. The teaching isimmediately functioning on the robot that was taught. In addition, therobot periodically uploads the teachings it receives to a server. Otherrobots do the same. Teachings from all robots are aggregated by theserver and existing models are fine-tuned. The fine-tuning occurs in twoways. First, sets of teachings, e.g., embeddings and classifications,can be pushed fleet-wide to all robots daily. All robots in the fleetcan now detect newer objects based on teachings from individual robots.Second, fully retrained models, e.g., machine learning models re-trainedon aggregated teachings from all robots, may be pushed to robots weeklyor fortnightly.

When a robot encounters an unknown object, a user may interact with therobot to unlock (e.g., make available for use) an object type from amaster list of known object types. The user associates this unlockedobject type to the unknown object that the robot encountered. The robotcan now detect objects of this new unlocked object-type. Generally,robots may use a perception system that is designed to classify manytypes of objects. To reduce the risk of false positives, however,individual robots may be configured to initially detect only a subset ofthe total set of object types. For example, a master list of objecttypes could include ten thousand or more different object types, whilean individual robot may have a subset, e.g., only one hundred or onethousand of those object types, unlocked and available to readilydetect. If the robot does not correctly detect an object, the user canbe shown an interface to select the appropriate item from the masterlist, so it will be unlocked and made available for the robot to detect.This can allow users to expand the range of objects their robot candetect through a remote interface, such as an application or web page.

In some instances, simply unlocking the object type may not besufficient to allow the robot to reliably detect the object and avoidfalse positives, however. To improve performance, especially to correcterrors by a robot, a user can identify an instance of the object typeand enable sample images or other sensor data to be acquired. Forexample, the user can use his cell phone to capture images of the objectfrom different sides, while tracking the camera positions for eachimage. As another example, after a user points out the object to therobot, and the robot acquires appropriate images. During teaching of anew object, the robot can ensure that the object is seen from all sides,at various distances, and under varying lighting conditions. To do this,the robot may need to: drive to different positions around the object tosee different sides of the object, and with different illumination; panand tilt the robot's head (e.g., sensor assembly) to capture the objectin different parts of the image, which causes changes in the object's 2Dappearance due to perspective distortion; pan and tilt the head tocapture variation in color/brightness due to overall image exposure.

Image snapshots and corresponding embeddings may be continuallygenerated until the robot determines that the object can be identifiedagain conclusively. Embeddings can be saved as new learned informationwhen the information is sufficiently different from the existingperformance of a model. For example, an embedding can be saved as a newlearned example after the vector distance between the object's standardembedding vector and the embedding vector for the nearest taught exampleexceeds a threshold. At this point, a new embedding vector is added as ataught example, whether for a new object type not in the master list,for an object type that is locked, or to refine an error for an alreadyunlocked object type.

The user can indicate to the robot to stop identifying one or morepreviously learned object types from the provided list. The user mayde-select any previously learned object types as shown in the providedlist. For example, the user can issue a voice command, interact with thedisplay of client device 108 that communicates with the robot, orinteract with a screen of a robot to de-select any previously learnedobject types for non-identification. The user may de-select a previouslylearned object type because that object no longer exists in the house102. In addition, the user may want to de-select one or more previouslylearned object types because the house 102 includes a new version of theobject type. For example, the user may de-select a shovel from theprovided list because the user brought a newer shovel to the house 102.The newer shovel includes a different looking head and handle shape thatthe robot may not be able to detect with information from the previouslylearned shovel object.

In response to receiving a de-selection from the user, the robot canlock the de-selected object types. In some implementations, the robotmay store in memory a locked list of the previously learned objecttypes. The robot will not identify any of the objects listed in thelocked list. For example, if the robot retrieves the older shovel model,the robot will not be able to identify the older shovel model as ashovel.

In some implementations, the user can unlock a previously locked learnedobject type. The user can request the robot provide a list of thepreviously learned object types that include the locked and unlockedobject types. The robot can provide the list to a local display or tothe display of client device 108. The user can select to unlockpreviously learned object types so that the robot can identify thepreviously learned object types. The user may seek to unlock previouslylearned object types when the user brings those object types to house102. For example, the user may determine the older shovel model performsbetter than the newer shovel model and as a result, discards the newershovel model. In this case, the user unlocks the robots identificationof the older shovel model in the provided list. The robot stores theupdated list in memory.

In some implementations, the selection and de-selection of previouslylearned object types applies only to a single robot. The robot's list ofpreviously learned object types is local to each particular robot andeach local list is not transmitted to the other robots. The list remainslocal so that each user can personalize each individual robot to detectand identify the object types that are most applicable for the settingof that robot. The personalization allows the user to be specific ininstructing particular robots to identify particular items of interest.

In addition, the first robot can transmit embeddings in its local cacheover the communication network so that the embeddings can be shared withother robots to allow the other robots to be able to identify similarobjects. For instance, the first robot can transmit the embedding storedin its local cache that allows the first robot to identify a coffee mugto a second robot and a third robot. After the second robot and thethird robot receive the embedding for identifying the coffee mug, thesecond and third robot can instantly identify a coffee mug if one isobserved in the robot's environment. Similarly, the second robot maytransfer an embedding to the first robot and the third robot that allowsthe robots to identify an object, such as a hat. As a result, once thefirst robot and third robot receive and store the embedding describingthe hat in their respective local caches, the first and third robot willbe able to identify and a retrieve a hat if requested by a user.

In some implementations, each robot in the fleet stores a machinelearning model that can be used to produce embeddings. The machinelearning model can receive input of characteristics of the object andwill output an embedding that represents a compact, encodedrepresentation describing the object. The embedding is generated basedon the propagation of data through the machine learning, and so theembedding generated in response to a set of input data is a function ofthe structure and training state of the machine learning model. As aresult, in order for each of the robots to use embeddings generated byother robots, the machine learning model in each robot can be the same,e.g., having the same structure and training state. This allows robotsto compare embeddings that the robots generate with the embeddings thatother robots provide and have a meaningful result. Otherwise, if tworobots use different machine learning models, the two robots may producevery different embeddings for the exact same object, and the robotswould not be able to correctly interpret the received embeddings.

The system may include a server, separate from the robots, that managestraining and version control for the machine learning models of therobots. The server can periodically transmit updated machine learningmodels to the robots and make sure the robots have identical models. Insome implementations, the server may update the machine learning modelupon receiving new embeddings from the robots. The server can transmitthe updated machine learning model to each of the robots. Updatedmachine learning models can be provided at regular intervals, e.g.,every two weeks, every month, etc., or updated models can be provided asneeded. Having the same machine learning model in common among manyrobots can provide a number of advantages. For example, thecomputational expense of training the model can be done once, at theserver, for each model update, which avoids the need for individualrobots to expend power and computing resources for model training.Distributing the same updated model also shares the combined learning ofthe robot fleet with the robots. All of the robots receive an updatedmodel that provide greater recognition ability, allowing the performanceof each robot to improve in a standardized and predictable way.

The system 100 illustrates the technique of sharing objectidentification abilities between robots. For instance, the exampleillustrates a robot 104B identifying an object, generating an embedding118 representing the object, and sharing the embedding 118 andadditional data with other robots 104A, 104C, and 104D. The example alsoshows a server system 112 training a machine learning model to add thecapability to identify the object represented by the shared embedding,and the server system 112 distributing the trained machine learningmodel 130 to the robots 104A-104D.

The processing shown in FIG. 1 achieves two important tasks. First,unlike systems that require a user to individually train each robot howto identify an object, the server system 112 aggregates and sharesembeddings from each of the robots 104A-104D such that only one robot isrequired to learn to identify a new object. In response, the serversystem 112 distributes the aggregated embeddings among the robots sothat each robot 104A-104D can identify the new object represented by theaggregated embeddings, even if a human never trained the other robots104A-104D to identify the newly identified object.

Second, the server system 112 can distribute a newly trained machinelearning model 130 to each of the robots 104A-104D without each robothaving to retrain its own local machine learning model. As a result, thesystem 100 allows learning while avoiding the need for each robot104A-104D to perform the computation required to train a machinelearning model.

In some implementations, the server system 112 can store a copy of themachine learning model locally on each of the robots 104A-104D. Therobots 104A-104D and the server system 112 each have the same machinelearning model to ensure distributed learning of objects is uniformacross the robot fleet. If a user trains robot 104A to identify a newobject, such as a pen, the robot 104A inputs the characteristics of thepen into a local machine learning that produces an embedding as output.The embedding output represents a characterization or fingerprint forthe pen object. In addition, the user may provide the robot 104A with aclassification label describing the type of object represented by theembedding. The classification label may be an auditory or textual inputtagging the embedding as a “pen.” The classification label is storedwith the embedding in a local cache of the robot 104A. Alternatively,the robot 104A may determine the classification label of the embeddingfrom previously identified pen objects stored in the local cache of therobot 104A.

In some implementations, the robot 104A transmits the produced embeddingand the classification label to the server system 112 to store in adatabase 114. The database 114 may include a table of classificationlabels corresponding to embeddings produced by the robots. The database114 may also include sensor data, feature data extracted from sensordata, or other information used to generate the embeddings. The serversystem 112 can utilize the newly received feature data to train themachine learning model. The server system 112 trains its copy of themachine learning to be able to recognize the new object in subsequentprocesses. After training with the embeddings of various robots104A-104D, the server system 112 transmits the trained machine learningmodel 130 to each of the robots 104A-104D. Each of the robots 104A-104Derases their currently locally stored machine learning model andreplaces it with the updated, newly trained machine learning model 130from the server system 112 and clears their respective local caches.Examples of this system 100 are described further below.

During stage (A), a user 106 instructs the robot 104B to retrieve a cup116. The user 106 speaks a command to the robot 104B, e.g., “Robot,please retrieve my cup”. The spoken utterance can include various typesof phrases and/or instructions directed towards each robot 104. If therobot 104B does not understand the spoken utterance, the robot 104B mayask the user 106 to repeat the instruction. For instance, the robot 104Bmay process the spoken utterance using speech recognition to determinethe context of the instruction.

The robot 104B first uses its perception models to attempt to identify acup. If the robot 104B finds the cup in its immediate environment or inits map of contents of the house, the robot 104B may locate the cup 116and carry out the requested command. However, if the robot 104Bdetermines that it cannot find the cup 116, or that its classificationmodel does not have the ability to recognize the object mentioned, therobot 104B may respond to the user 106 reciting “Which object is ‘mycup’?” In response, the user 106 can take one or more actions to trainrobot 104B to identify a cup 116.

In some implementations, the user 106 can train the robot 104B toidentify the cup 116. For example, the user may point to the cup 116,and the robot 104B may move to capture images from different sides ofthe cup 116. As another example, the user 106 can hold up the cup 116 infront of the robot 104B so the robot's sensors capture and learn thecharacteristics of the cup 116. The robot 104B can observe the cup 116from various angles to learn various characteristics of the cup 116.These characteristics may include the shape, color, size, contour, andtexture of the cup, to name a few examples. Additionally, the robot 104Bmay utilize RGBD sensors that capture red, blue, green, and depth data.This information, potentially combined with LIDAR, 3D depth data, orradar data captured by the robot, may allow the robot 104D to determinethe three-dimensional shape and volume of the cup 116. The robot 104Bcan also capture audio data or other data while analyzing the cup 116.The robot 104B may include sensors such as a camera, a LIDAR sensor, aproximity sensor, an infrared sensor, an accelerometer, a touch sensor,a microphone, a depth camera, and a position sensor, to name a fewexamples. Other types of sensors may be used, and the previouslymentioned sensor types are described as examples.

During stage (B), the robot 104B processes sensor data for an object.For example, after the user has identified the cup 116 for the robot104B and the robot has captured images or other sensor data for the cup116, the robot 104B processes the sensor data to identifycharacteristics of the object. The robot 104B generates feature data 122from the obtained characteristics of the object. The feature data 122may include a representation of the shape, color, size, contour, depth,and texture data from the sensors. The robot 104B provides the featuredata 122 as input to its local machine learning object recognitionmodel.

The local machine learning object recognition model may be a neuralnetwork that includes an input layer, an output layer, and one or morehidden layers. In some implementations, the primary purpose of theobject recognition model is to recognize objects, not simply to produceembeddings. For example, the object recognition model may be configuredto provide scores that represent a probability distribution over manytypes of objects the model is configured to recognize. For example, ifthe model is trained to recognize 10,000 different types of items, themodel may have an output layer with 10,000 elements, each correspondingto a different type of item. The value generated for each element at theoutput layer can indicate a probability that the input feature dataprovided to the model represents the corresponding object type. Othermodel configurations may also be used, including dedicated encodingnetworks that have the primary or sole purpose of generating embeddings.

As the machine learning model processes input feature data, the modelgenerates information that can be used to derive an embedding 118 forthe object described by the input feature data. For example, theembedding 118 may be the set of values provided at the output layer of aneural network. As another example, the embedding 118 may be a set ofvalues representing the activations at a hidden layer of a neuralnetwork, such as the set of activations of nodes at a final hiddenlayer. As another example, a function or transformation may be appliedto information derived from the output layer and/or hidden layers of themodel to generate the embedding 118. Outputs of other types of machinelearning models, besides neural networks, may also be used to generateembeddings.

The embedding 118 represents an encoded representation of thecharacteristics of the cup 116. In general, embeddings for differentobjects may each have a common format and size, for example, eachembedding can be a 128-unit vector, for example, where each unitincludes 64-bit data values. In another example, the embedding can be a256-unit embedding that represents an object. A 256-unit embedding mayindicate a higher fidelity embedding representing an object than a128-unit embedding, but at the expense of utilizing more memory. Anembedding may be generated using the local machine learning for eachobject observed by the robot 104B. However, the robot 104B does notstore embeddings in its cache for objects that the object recognitionmodel can already recognize. Rather, the cache is used to storeembeddings for newly learned objects, or received embeddingsrepresenting newly learned objects from other robots, when the objectrecognition model cannot appropriately recognize the object. Thus, thecache is used generally to store embeddings for objects that the objectrecognition model is not trained to detect, or to correct errors inwhich the object recognition model incorrectly classifies an object. Theembeddings and classification information in the cache can supplementthe recognition ability of the trained machine learning model, and evenover-ride incorrect classifications by the model.

In some implementations, the user 106 may provide a classification label120 for the embedding 118 produced by the robot 104B. For instance, therobot 104B may request that the user 106 provide a classification label120 for an object that the robot does not recognize. The user 106 mayprovide the classification label 120, in any of various ways, e.g.,voice input to the robot, or entering the information to a client device108, such as a phone or computer that communicates with each of therobots 104. The client device 108 may communicate with the robots104A-104D over any communication protocol, such as Bluetooth or Wi-Fi.For example, the user 106 may type in the classification label 120 “cup”into the client device 108. Alternatively, the user may speak anutterance detected by the client device 108, as illustrated in FIG. 1,reciting, “This is a ‘Cup’”. In other implementations, the user 106 maycommunicate directly with the robot 104B to provide the classificationlabel 120 using a text input or speaking to the robot 104B.

In some implementations, the user 106 may provide an auditory teachingto the robots 104A-104D. The auditory teaching may incorporatepreviously known classification labels that the robot 104A, for example,comprehends in order to understand the auditory teaching. For example,the robot 104A may include an embedding corresponding to a “beer glass”and another embedding corresponding to a “beer stein” object. If user106 instructs robot 104A to retrieve the “beer stein,” the robot 104Awill know to associate “beer glass” with “beer stein” and retrieve the“beer stein” object.

In response, the robot 104B stores the produced embedding 118, thecorresponding classification label 120, and the feature data 122 in alocal cache of the robot 104B. In some implementations, multipleembeddings may be stored for a single classification label 121, to showdifferent examples of the same type of item. The robot 104B may capturesensor data that shows characteristics of an object from various angles.Each angle the robot captures of the object produces different sensordata, which could be provided to the local machine learning to produce adifferent embedding. As another example, multiple views of an object maybe used to generate a single embedding that represents athree-dimensional aspects of the object. In some implementations, arobot may observe multiple objects of the same type, and use thedifferent instances of the object type to produce different embeddings.For instance, the house 102 may have multiple pens of differing shapesand sizes, but each of which is still a valid example of the “pen”classification. As a result, the robot 104B may store multipleembeddings for the “pen” classification, with each embeddingrepresenting a different physical pen observed by the robot 104B.

In addition, the robot 104B can store additional metadata correspondingto the classification label 120 and the embedding 118. The robot 104Bcan store a version code for the current machine learning model storedon the robot 104B. The version code number describes a state of thecurrent machine learning used to generate the embedding 118. Forexample, the version may be version number “1.0” or a date correspondingto when the machine learning model was installed. The robot 104B canalso store location information corresponding to where the objectcorresponding to the embedding was located. The location information caninclude a type of location (e.g., home, store, library, etc., or withina home, living room, kitchen, dining room, etc.), a GPS coordinate ofthe location, and a date/time of day. For instance, the user 106 mayprovide the type of location to the robot 104B using the client device108 or directly interacting with the robot 104B. For example, the typeof location may be the “kitchen.”

In some implementations, the additional metadata can also include adescription of how the robot 104B determined the classification of theidentified object. For instance, the classification may be determinedwith user input, such as user 106 inputting the classification label 120to the robot. Alternatively, the classification may be determined by therobot 104B itself. For instance, the robot 104B may scan one or moreobjects as it moves through each room of house 102. When scanning anobject, the robot 104B provides as input the characteristics of theobject to the robot 104B's local machine learning model. The output ofthe local machine learning model produces an embedding, such as anembedding 118, which describes a representation of the object. The robot104B can compares the embedding 118 output to the stored embeddings inits local cache. If the robot 104B determines the produced embeddingsimilarly matches at least one of the embeddings in the local storage,the robot 104B may store the produced embedding with the classificationlabel from the local cache in the local cache. This process will befurther described below.

In some implementations, the additional metadata may includeidentifications corresponding to the robot 104B that identified theobject. For instance, the identification of the robot 104B may includean identification number, such as “0001,” to identify the robot 104B.The additional metadata may include a group ID and owner ID number ofrobot 104B. The group ID number designates that the robot 104B belongsto a group that may include other robots. For instance, group ID number2 may designate robot 104B is in a group with robot 104A and robot 104C.The owner ID number designates robot 104B to a particular owner.

In some implementations, the additional metadata may also include arobot type. The robot type may indicate a physical model of the robot, arole of the robot, or a description of the robot's purpose. Even if therobots are physically identical or similar, their programming andfunction may be different. For example, user 106 may designate robot104B to be a “kitchen robot” and robot 104A to be a “golf robot”. Otherrobot types are possible, such as a “hotel robot,” a “hospital robot,” a“warehouse robot,” and a “car garage robot.” These robots may be traineddifferently, to better fulfill their respective roles. Because theyperform different types of tasks, the information and abilities that onetype of robot learns may not always be applicable or helpful for anothertype of robot. By labelling the embeddings with the corresponding robottype, the server system 112 may selectively share the embeddings, sothat robots receive applicable embeddings for their robot type (e.g.,those generated by other robots in the same robot type) and do notreceive embeddings that are not applicable.

During stage (C), the robot 104B transmits the embedding 118 and thecorresponding classification label 120 to the server system 112 over thenetwork 110. The robot 104B may also transmit the corresponding featuredata 122 or raw sensor data used to generate the embedding 118, as wellas any metadata about the embedding 118 or the robot 104B. The robot104B may tag the embedding 118 with an indication of the destination forthe server system 112. For instance, the tag may include an indicationthat the embedding is “new,” e.g., represents a newly learnedclassification that the model is not able to recognize, and that theinformation should be shared with other robots. The server system 112determines that the new embedding and classification can to bedistributed to the other robots 104A, 104C, and 104D. As anotherexample, the robot 104B's tag may include an indication that theembedding is “known,” e.g., that the embedding is a further example ofan already-known classification, which can be used to refine the model.The server system 112 can use the feature data 122 provided with theembeddings to refine and train the machine learning model stored by theserver system 112.

In some implementations, the server system 112 may store the receivedembedding 118, the received corresponding classification label 120, andthe feature data 122 in the database 114. The database 114 can includeone or more tables that include classification labels, feature data orsensor data describing the object, and corresponding embeddings producedby the robots in the system 100. The database 114 may additionally storethe metadata generated by each robot corresponding to each embedding.The server system 112 may retrieve the classification labels, thefeature data, and the corresponding additional metadata from thedatabase 114 when training the local machine learning model.

During stage (D), the server system 112 distributes the receivedembeddings, corresponding classification labels, and feature data to theother robots. After the server system 112 receives the embedding 118,corresponding classification label 120, and the feature data 122 fromrobot 104B, the server system 112 may determine that the embedding 118and the corresponding classification label 120 represents new learningthat can be distributed to the other robots. For instance, the serversystem 112 may determine the embedding 118 and the correspondingclassification label 120 should be distributed to the other robots basedon the indication tag provided by the robot 104B. For example, if theindication tag reads “new,” the server system 112's next action is todistribute the embedding 118 and the corresponding classification label120 to robots 104A, 104C, and 104D. Additionally, the server system 112may transmit the additional metadata to the robots 104A, 104C, and 104Dalong with the embedding 118 and the corresponding classification label120.

In some implementations, the server system 112 may determine theembedding 118 should be transmitted to the other robots based on thereceived classification label 120 alone. For instance, the server system112 can compare the received classification label 120 to the storedclassification labels in the database 114. If the server system 112determines the received classification label 120 does not match any ofthe stored classification labels in the database 114, or contextually nomatch occurs, then the server system 112 stores the newly receivedembedding 118 and the received classification label 120 in the database114.

In some implementations, a contextual match occurs when the serversystem 112 receives a classification label 120 of “a cup” and the serversystem 112 finds a classification label in the database 114 of “a coffeemug,” for example. Although, the classification labels have differentstring characters, the context of “a cup” and “a coffee mug” havesimilar characteristics. If a contextual match does occur, the serversystem 112 may transmit a notification to the device 108 to notify theuser 106 that two embeddings correspond to different or similar objects.Alternatively, the server system 112 can store and distribute newembeddings each time a new embedding is received from a robot,regardless of whether the new embedding is different from the storedembeddings in the database 114.

During stage (E), after collecting embeddings from the robots 104A-104D,the server system 112 updates the machine learning model and transmitsthe updated machine learning model 130 to each of the robots 104A-104D.In some implementations, the server system 112 may train its copy of themachine learning model using any newly received feature data from robots104A-104D. In the meantime, while training is ongoing at the serversystem 112, the robots 104A-104D are nevertheless able to use thelearning being incorporated through the model training. The serversystem 112 has already shared the embeddings and classifications thatdescribe the examples being used in the model training process.Accordingly, the robots 104A-104D are able to recognize or classify thenew objects by the embeddings, even before receiving an updated model.

In one example, robot 104D may learn to identify an object 124 in thehouse 102. After capturing sensor data describing the object 124 andlearning a classification 132, the robot 104D can convert thecharacteristics to feature data 128 and provide the feature data 128 asinput to its local machine learning model. From output of the localmachine learning model, the robot 104D produces an embedding 126. Therobot 104D also determines a classification label 132 of “Camera”corresponding to the embedding 126, e.g., based on input from the user106. The robot 104D uploads the embedding 126, the feature data 128 usedto generate the embedding 126, and the classification label 132 to theserver system 112. The server system 112 distributes the embedding 126and classification label 132 to the other robots 104A-104C, which storethe information in their local caches. The server system 112 also usesthe embedding 126, classification label 132, and feature data 128 tofurther train the object recognition model.

The server system 112 may train a machine learning model using thefeature data and classification labels from each of the robots104A-104D. For instance, the server system 112 may train a neuralnetwork on the feature data 122 and the classification label 120 fromrobot 104B as well as the feature data 128 and classification label 132.By training a machine learning model with the examples and learning fromeach of the robots 104A-104D, the server system 112 can improve themachine learning model to correctly recognize objects that any of therobots 104A-104D have learned to recognize.

FIG. 2 is a block diagram that illustrates an example of a system fortraining a robot to detect an object. In some implementations, a user106 may train a robot, such as robot 104A, to identify and detect anobject, such as a cup in the example of FIG. 2. Training a robot104A-104D to identify and detect an object allows the user 106 torequest the robot 104A-104D to retrieve the object at a later point intime.

In some implementations, each robot 104A-104D may include the componentsillustrated in FIG. 2. For instance, as previously mentioned, robot 104Aincludes robot sensors 202. The robot sensors 202 provides the robotwith a method to interpret its environment. For instance, the robotsensors 202 may include a camera, a LIDAR sensor, a proximity sensor, aninfrared sensor, an accelerometer, a touch sensor, a microphone, and aposition sensor, to name some examples. The robot 104A may utilize eachof these sensors to avoid obstacles while moving through house 102, tounderstand an encountered object the robot 104A grasps, and to receiverequests from the user 106.

In some implementations, the robot sensors 202 produce sensor data 204.The sensor data 204 includes image data 206 and depth information 208,and may include other sensor data. Additionally, the sensor data 204 mayinclude contour, shape, and texture data. The image data 206 can includeone or more videos and/or one or more still images of an object. Theimage data 206 may include color information (e.g., red, green, and blueor RGB information) and/or monochrome image data.

In some implementations, the depth information 208 is determined using acamera module. This information may be generated using a stereo camera,in which differences between the images between two image sensors areused to determine the distance of the object from the camera. Inaddition, or as an alternative, the depth information 208 may begenerated using a LIDAR system, a radar system, or other depth sensor ofthe robot 104A.

In some implementations, the robot 104A can generate feature data 212from the sensor data 204. The feature data 212 may be a representationof the sensor data 204 that the machine learning model 214 is configuredto receive as input.

The robot 104A includes a local machine learning model 214. The localmachine learning model 214 can be stored in memory of the robot 104A,optionally separate from the local cache 218. The server system 112 mayprovide the machine learning model 214 for the robot 104A over anetwork, and can ensure that each robot 104A-104D uses the same machinelearning model 214, e.g., the most current version.

The robot 104A determines an embedding 118 that represents an encodedrepresentation of the cup described by the image data 206, the depthinformation 208, and any other sensor data produced by the robot 104A.The embedding 118 is stored in robot 104A's local cache 218 along with aclassification label 120 provided by user 106. The user 106 can providethe classification label 120 through interaction with the client device108. Alternatively, the user 106 can provide the classification label120 through direct interaction with the robot 104A, by either speakingto a microphone on the robot 104A or entering text through a terminal onthe robot 104A.

In some implementations, the local cache 218 stores a set of data 220for each object. For instance, a set of data 220A for the recentlytrained “cup” object includes an embedding 118, a classification label120 corresponding to the embedding 118, and sensor data 204corresponding to the embedding. By storing the set of data 220 in alocal cache 218, the robot 104A can quickly access the data sets to usein recognizing objects it encounters. The robot 104A may store anyembeddings and classification labels received from the server system 112in the local cache.

In some implementations, when a robot receives embeddings andclassification labels from the server system 112, only the embedding andthe classification label are received, without the corresponding sensordata or feature data. The embedding is the data element used forcomparison in the object recognition process, discussed further withrespect to FIG. 3. As long as the machine learning model used togenerated the received embedding is the same machine learning model usedby the robot 104A receiving the embedding, the sensor data or featuredata used to generate the embedding is not needed.

FIG. 3 is a block diagram that illustrates an example of a system 300 ofa robot detecting an object. In some implementations, each robot104A-104D performs the following steps to detect and identify object.

In some implementations, the robot 104D may find an object, such ascamera, in house 102. The robot 104D captures sensor data 302 describingof the camera using the sensors 202. The robot 104D may scan the object124 at various angles and distances to get a full view of the object124. The sensor data 302 may include image data 304 and depthinformation 306, as well as other information describing of the object124.

The robot 104D provides the sensor data 302, or feature data generatedfrom the sensor data 302, to the machine learning model 214, which isstored locally at the robot 104D. The model 214 used by the robot 104Dcan be a copy of the same machine learning model 214 stored and used bythe other robots 104A-104C. The machine learning model 214 is configuredto produce information indicating the likelihood that the input datarepresents different types of objects. For example, the model 214 mayoutput a set of values that form a probability distribution across a setof object types, for example, with one value indicating a likelihoodthat the input data describes a “spoon,” another value indicating alikelihood that the input data describes a “book,” and so on. From theoutputs of the model 214, the robot 104D may select the object type thatthe model outputs indicate is most likely to describe the observedobject 124. For example, the robot 104D may identify the model outputindicating the highest probability, and select the classificationcorresponding to that output. In the example, the model 214 indicates,based on its training, that the observed object 124 is most likely a“Box,” represented by classification label 312, and that the confidencescore 310 for the classification is 50%. The confidence score 310indicates a level of confidence that the classification label 312accurately describes the object 124, and may be determined based onoutput of the machine learning model 214 or based on another evaluationof the model's output.

In addition to using the machine learning model 214 to predict aclassification for the object 124, the robot 104D also uses theprocessing of the machine learning model 214 to generate an embedding314 for the object 124. For example, the embedding may be derived fromactivations at one or more hidden layers of the model 214 and/or fromdata at an output layer of the model 214.

The robot 104D compares the embedding 314 generated for the object 124with the embeddings stored in the robot's local cache 218. The robot104D may separately compare the embedding 314 with each embedding in thelocal cache 218. For example, the robot 104D compares the embedding 314to the embedding in data set 220A through 220N and generates data, suchas a confidence score, indicating how closely the cached embeddingsmatch the embedding 314. To perform the comparison, the robot 104D mayperform bitwise comparisons, vector distance determinations, or othercomparisons to generate a measure of similarity between embeddings.

In some implementations, each comparison may produce a confidence score.For example, the comparison between embedding 314 and the embedding inthe dataset 220A produces a confidence score 320 of 10%. The comparisonbetween embedding 314 and the embedding in the dataset 220B produces aconfidence score 322 of 30%. The comparison between embedding 314 andthe embedding in the dataset 220C produces a confidence score 324 of90%. The comparison between embedding 314 and the embedding in thedataset 220D produces a confidence score 326 of 50%. The comparisonbetween embedding 314 and the embedding in the dataset 220N produces aconfidence score 328 of 50%.

The robot 104D then identifies which the embedding had the highestconfidence score or measure of similarity with the embedding 314. In theexample illustrated in FIG. 3, this is the embedding in dataset 220C,which has a corresponding classification label 330 of “camera.”

The robot 104D then selects whether to use the classification predictedby the machine learning model 214 or the classification determined usingthe cache 218. For example, the robot 104D compares the compares theconfidence score 324 of 90% to the confidence score 310 of 50% producedby the machine learning model 214. The robot 104D chooses classificationcorresponding to the higher of the confidence scores. In this example,the robot 104D selects the classification label in the dataset 220C tocorrespond with the embedding 314 because the confidence score 324 of90% is greater than the confidence score 310 of 50%. This allows thelocal cache 218 to provide new or higher-quality classification resultsthan what is provided by the machine learning model 214.

In some implementations, the robot 104D may apply a threshold to ensurethat classifications have at least a minimum confidence score beforeusing a classification. For example, a classification may be required tohave a confidence score of at least 70% before the robot 104D acceptsthe classification result.

Having selected the classification of “camera” as the most likelyclassification for the object 124, based on finding a close match usingthe local cache 218, the robot 104D may provide that classification toother models and modules of the robot 104D to carry out tasks. Forexample, the robot 104D may retrieve the camera when a user asks for theobject.

The robot 104D can repeat the process discussed in FIG. 3 for eachobject observed by the robot 104D in order to classify the objects therobot 104D encounters. This recognition or classification process may bedone very frequently, e.g., on an almost continuous basis as the robotobserves its surroundings, and for multiple objects that may be in viewat any given time. As a result, it is important for the process to becomputationally efficient and power efficient. The architecturediscussed here provides these benefits, since processing of the machinelearning model can be very fast and efficient, and the lookup andcomparison process for using datasets in the local cache can similarlybe fast and efficient.

Generally, the embedding 314 and the sensor data 302 for an observedobject 124 are discarded after recognizing the object 124. Nevertheless,in some implementations, this information can be saved and provided tothe server system 112 as additional example data for an object type, andthe server system 112 may use this information when training the machinelearning model 214 further.

FIG. 4 is a block diagram that illustrates an example of another system400 for sharing learned information among robots. FIG. 4 illustrates anexample of sharing perception information among robots 104A, 104B, and104C. Each robot 104A, 104B, and 104C stores and uses a copy of the samemachine learning model 402. As a result, each robot 104A-104C producessimilar embeddings when observing similar objects. Each of the robots104A-104C has a local cache 404A-404C in which embeddings andcorresponding classifications are stored.

The local cache 406A for the robot 104A initially includes a dataset406A, which was generated by the robot 104A based on sensor data thatthe robot 104A captured. The dataset 406A can include at least anembedding and a corresponding classification label. The robot 104A mayalso transmit sensor data and metadata corresponding to the embedding inthe data set 406A. The robot 104A transmits the dataset 406A to theserver system 112 over the network 110. The robot 104A may designatethat the dataset 406A should be shared with other robots. Similarly, therobot 104A may indicate that the dataset 406A is new, or that itrepresents a classification example that addresses an inadequacy orerror of the machine learning model 402.

The local cache 404B of the robot 104B initially includes dataset 406B,which is based on sensor data that the robot 104B captured. The dataset406B includes an embedding and classification, but for a differentobject than the one represented by data set 406A. The robot 104Btransmits the data set 406B to the server system 112 over the network110.

The server system 112 distributes the data sets 406A and 406B so thateach of the robots receives the information for its local cache. Forexample, the server system 112 sends the data set 406B, generated by therobot 104B, to the robot 104A. The server system 112 sends the data set406A, generated by the robot 104A, to the robot 104B. The server system112 sends the data sets 406A and 406B to the robot 104C.

As a result of the distribution by the server system 112, the robot 104Cwill be able to identify the objects represented by each of theembeddings in the datasets 406A and 406B without having to be trained byuser 106 to detect those objects. Additionally, robot 104B will be ableto identify the object represented by the embedding in dataset 406Awithout being trained by user 106 to detect the object. Likewise, robot104A will be able to identify the object represented by the embedding indataset 406B without having to be trained by user 106 to detect theobject. The sharing of information in datasets (e.g., embeddings)between robots across a network 110 decreases the time required to trainthe robots to recognize new objects.

The server system 112 may also store the datasets 406A and 406B in thedatabase 114. The server system 112 collects the data sets from robotsover a period of time, and further trains a copy of the machine learningmodel 402 to be able to recognize the objects indicated in the datasets406A and 406B. When the

In some implementations, the server system 112 may perform periodicsynchronizations between robots 104A through 104C to ensure each robotincludes the latest set of embeddings. For instance, the periodicsynchronizations may occur at a predefined rate, such as hourly, daily,weekly, etc., and the synchronization may be initiated by a robot or bythe server system 112. The periodic synchronizations may include arequest from the server system 112 to each of the robots 104A-104D toupload any new embeddings since the last synchronization. Each robot104A-104D may also provide a list of identifiers for datasets in itscache, so that the server system 112 can determine specifically whichdatasets should be sent and which are already present. The server system112 determines which embeddings to provide to the robots 104A-104D sothat each robot 104A-104D includes the latest embeddings in their localcache from each of the other robots 104A-104D.

FIG. 5 is a block diagram that illustrates an example of a system 500for providing updated machine learning models to robots. Periodically,for example, monthly, the server system 112 can generate and distributean updated machine learning model that incorporates the combinedlearning from the various datasets that the robots 104A-104D haveprovided. FIG. 5 illustrates an exemplary distribution of providingupdated machine learning models to robots 104A, 104B, and 104C. Aspreviously illustrated in FIG. 4, each robot 104A, 104B, and 104Cincluded the same machine learning model 402. In addition, each robot104A, 104B, and 104C has its own separate local cache 404A, 404B, and404C.

The server system 112 includes a model trainer 502 that iterativelytrains a machine learning model 504. Prior to training, this model 504may be the same model 402 that the robots 104A-104D are using, or it mayrepresent a different model. The result of the training process is anupdated machine learning model 506 that incorporates what the variousrobots 104A-104D have learned over a time period. The model trainer 502may update the machine learning model 504 based on each received datasetthat a robot designates as a newly learned classification. In someimplementations, the model trainer 502 may train the machine learningmodel 504 using data representing additional examples of classificationsthat the model 402 can already accurately recognize, e.g., usingreinforcement learning. By training the machine learning model 504 on“new” and “known” datasets, the server system 112 can create an updatedmachine learning model 506 to accurately recognize objects fromreal-world observations, for both new object types and object typesalready predicted by the model.

In some implementations, the server system 112 transmits the updatedmachine learning model 506 to each robot 104A, 104B, and 104C over thenetwork 110. In response to a robot 104A-104D receiving the updatedmachine learning model 506, the robot 104A-104D will remove the machinelearning model 402 and use the updated machine learning model 506 in itsplace. From that point on, the robots 104A-104D use the updated machinelearning model 506 and benefit from the improved accuracy that itprovides.

When the robots 104A-104D receive the updated machine learning model506, the robots 104A-104D clear their local caches 404A-404D. Forexample, the datasets 406A and 406B are deleted. The classificationsrepresented by the datasets in the caches are now predicted directly bythe updated model 506, and so the stored datasets are not needed.Further, since the datasets in the caches were generated using the oldmachine learning model 402, the embeddings from those datasets would beincompatible with the updated machine learning model 506. If there aresome datasets that have not been shared by robots but have not yet beenincorporated into the training of the updated machine learning model506, the server system 112 may use the sensor data that the robotsprovided to generate embeddings using the updated machine learning model506. The server system 112 can then send the updated data sets, havingembeddings compatible for the updated model 506, to the robots 104A-104Dfor storage in the local caches and use alongside the updated model 506.

FIG. 6 is a flow diagram that illustrates an example of a process 600for sharing learned information among robots. A first robot, such asrobot 104A, may perform the process 600.

In the process 600, a first robot obtains sensor data indicatingcharacteristics of an object (602). The robot may include sensors suchas a camera, a LIDAR sensor, a proximity sensor, an infrared sensor, anaccelerometer, a touch sensor, a microphone, and a position sensor, toname a few examples. For example, a robot can capture and learn thecharacteristics of the object from several different angles. The robotmay move itself, or its sensors, to different positions to obtain thesedifferent views. The obtained characteristics may include shape, color,contour, texture, and depth information regarding the object. The robotcan convert the obtained sensor data of the object to feature data inorder for a machine learning model to process the feature data.

The robot determines a classification for the object (604). For example,a user may provide a classification for the object. The user can providethe classification of the object with voice input or text input to aclient device 108. Alternatively, the user can provide theclassification for the object by interacting with the robot itself. Theclassification can be a text label tagged to the object.

The robot generates an embedding for the object using a machine learningmodel stored by the first robot (606). The robot extracts feature data122 from the sensor data for the object. The feature data may include adigital version of the sensor data, such as scores or valuesrepresenting aspects of the sensor data, as understood by the machinelearning model. For instance, the robot 104B provides the feature data122 as input to its local machine learning model. The machine learningmodel processes the feature data to produce an embedding.

In some implementations, the machine learning model is a neural networkmodel, and the embedding can be derived from output at an output layerof the neural network model. In other implementations, the embedding isderived from data indicating activations at a hidden layer of the neuralnetwork model. The specific values of the embedding can depend on thestructure and training state of the machine learning model.

The robot stores the generated first embedding and data indicating theclassification for the object in a local cache of the first robot (608).For example, the robot stores the generated first embedding and theclassification label for the object in the local cache of the robot. Inaddition, the robot may store the corresponding sensor data of theidentified object in the local cache with the generated first embeddingand the classification label.

The robot sends the generated first embedding and the data indicatingthe classification to a server system over a communication network(610). The robot may also send metadata to the server system. Themetadata may designate, for example, whether the first embedding is tobe shared with other robots. The metadata may also information, such asa version code or identifier for the machine learning model used togenerate the first embedding. As another example, the metadata mayindicate a robot identifier for the robot, an identifier for a type ormodel of the robot or a role of the robot, and/or data indicating agroup of robots that the robot belongs to. The server system can usethis information to select which robots should receive the sharedembedding, e.g., potentially limiting sharing to take place among robotsin the same group, or robots of the same type, model, or role. In someimplementations, the first embedding can be sent using an applicationprogramming interface (API) for sharing, so that first embedding andother data sent using that API are designated to be shared by virtue ofbeing sent through the API.

The robot receives a second embedding and a corresponding classificationfrom the server system over the communication network (612). The secondembedding can be one that a second robot generated. For example, theembedding and corresponding classification that the second robotgenerated can be for an object that the first robot has not yet learnedto recognize.

The robot stores the received embedding and the correspondingclassification in the local cache of the robot (614). The robot can thenuse the embeddings and classifications in the cache, both for objectsobserved by the robot and for received data representing objects notobserved by the robot, to recognize objects when performing tasks.

In some implementations, the robot can subsequently use the firstembedding or the second embedding in the local cache to recognize one ormore objects in an environment of the robot. When the robot uses thegenerated first embedding or the generated second embedding to recognizeone or more objects in an environment, the robot generates sensor datadescribing a particular object that the robot observes in theenvironment of the robot. The robot generates an embedding for theparticular object using the second machine learning model and the sensordata describing the particular object. The robot then compares the newlygenerated embedding for the particular object with the first embeddingand the second embedding. The robot assigns a classification for theparticular object based on the comparison of the embedding for theparticular object with the generated first embedding and the generatedsecond embedding. As noted above, if the embedding for the particularobject is not within a threshold level of similarity (e.g., a vectordistance between the embeddings is less than a maximum threshold) forany of the embeddings in the cache, the classification indicated by themachine learning model is used. On the other hand, if the embedding forthe particular object is within the threshold level of similarity, or atleast is similar enough that a confidence score indicates a better matchthan what the machine learning model indicates, the robot can use theclassification corresponding to the most similar embedding in the cacheas the classification for the particular object.

In some implementations, the robot can receive a second machine learningmodel from the server system over the communication network. Thereceived second machine learning model can be one generated by theserver system. The second machine learning model can be an updatedmachine learning model that has been updated based on the combined setof robot learning that occurred across the fleet over a previous timeinterval, e.g., the last week or month. The robot can use the secondmachine learning model to recognize one or more additional objects andpreviously identified objects. Additionally, the robot can removeembeddings generated using the first machine learning model from itslocal cache.

FIG. 7 is a block diagram that illustrates an example of a system 700for selectively sharing learned information among robots. As discussedabove, it is advantageous for robots to share information they learned,so that all the robots in a fleet can learn more rapidly and improvetheir abilities. However, some information that robots learn may be oflow quality, for example, incorrect or conflicting information.Propagating low-quality information throughout a fleet of robots coulddiminish performance or introduce errors in robot perception. Similarly,training machine learning models with low-quality information coulddegrade model accuracy. To ensure that the sharing of robot learningimproves performance, a computing system can evaluate the informationthat robots learn and limit sharing of information to items that arebeneficial to the fleet. The computing system can also set qualitythresholds and quality checks for the training of machine learningmodels, so that updates to the models improve performance and are basedon valid examples. These evaluation and filtering steps can also providea measure of security by blocking malicious or intentionally incorrectinformation from propagating between robots and degrading robotperformance.

In FIG. 7, the server system 112 evaluates the datasets that robots104A-104D have uploaded. The server system 112 only distributes datasetsthat pass certain quality tests. Similar to FIG. 4, each robot 104A-104Cincludes a local cache 404A-404C, respectively. Each robot 104A-104Calso stores and uses the same machine learning model 402. Unlike FIG. 4,the server system 112 does not automatically share uploaded datasetswith the other robots, but instead verifies the quality (e.g., accuracy)of a dataset before distributing it to other robots.

In the example, robot 104A transmits newly acquired datasets 406A and406B to the server system 112 over the network 110. The robot 104A candesignate each dataset 406A and 406B as information that can be sharedwith the server and with other robots. The server system 112 willevaluate these datasets 406A and 406B to determine whether they shouldbe shared, e.g., transmitted to the other robots 104B and 104C. In someimplementations, sharing can be performed to a group of robots using anaccess control list, to robots within a domain, or to each of the robotsin the fleet. To avoid tampering, the robots 104A-104D may encrypt thedatasets 406 or securely sign the datasets 406, so that the serversystem 112 can securely receive the transmitted datasets 406.

Before the server system 112 distributes the datasets 406A and 406B tothe other robots 104B and 104C, the server system 112 can assess thequality of the datasets 406A and 406B, based at least in part on theembeddings in the datasets. The server system 112 can also store thedatasets 406A and 406B in the database 114.

The server system 112 can include a quality assurance system 702 thatprovides a quality assessment of each dataset received from the robots104A-104D. The quality assurance system 702 includes a quality analysismodule 704 that analyzes each embedding received from the robots104A-104D. The quality analysis module 704 produces a quality score thatindicates the quality of the embedding in the dataset 406. How thequality analysis module 704 analyzes the embedding in the dataset 406and produces a quality score that indicates the quality of the embeddingwill be further explained below. For example, the quality analysismodule 704 produces a quality score of “82” for the dataset 406A.Additionally, the quality analysis module 704 produces a quality scoreof “46” for the dataset 406B. In response to determining the qualityscores corresponding to the embedding in the dataset, the qualityanalysis module 704 compares each of the determined quality scores to aquality threshold.

The quality assurance system 702 can store and apply a quality thresholdto the datasets being assessed. The quality threshold may be predefinedor may be dynamically set according to the data assessed. As shown inFIG. 7, the quality analysis module 704 sets the quality threshold to“70,” meaning that individual datasets may be required to have a qualityscore of at least this minimum value before they can be distributed toother robots.

The quality analysis module 704 compares the quality score of eachdataset 406 to the quality threshold. If the quality analysis module 704determines that the quality score is greater than or equal to thequality threshold value, then the quality analysis module 704 allows theserver system 112 to transmit the dataset to other robots 104A-104D. Ifthe quality analysis module 704 determines that the quality score isless than the quality threshold value, the dataset is not transmitted.In some implementations, the quality analysis module 704's indication toshare or not share the dataset 406 is stored in the database 114.

For example, the quality analysis module 704 compares the quality scoreof “82” for dataset 406A to the quality threshold “70.” The qualityanalysis module 704 determines that the quality score of “82” for thedataset 406A is greater than the quality threshold of “70.” As a result,the quality analysis module 704 indicates to the server system 112 toshare the dataset 406A.

The quality analysis module 704 also compares the quality score of 46for dataset 406B to the quality threshold “70.” The quality analysismodule 704 determines that the quality score of “46” for the dataset406B is less than the quality threshold of “70.” As a result, thequality analysis module 704 indicates to the server system 112 to notshare the dataset 406B.

According to the evaluation of the datasets, the server system 112selectively transmits the datasets to the robots 104B and 104C. Forexample, the quality analysis module 704 determines to share the dataset406A and not to share the dataset 406B based on the comparison of theirrespective quality scores to the quality threshold. As shown in FIG. 7,the server system 112 transmits the dataset 406A to the robots 104B and104C. Each robot 104B and 104C then stores the dataset 406A in arespective local cache 404B, 404C. In some implementations, the qualityanalysis module 704 can provide an indication, to the robot 104A thattransmitted it, that the transmitted embedding was of a particularquality. For example, the indication can indicate that the transmittedembedding was of a low quality or of a high quality. By indicating thequality level or a quality score, the robots 104A-104D can appropriatelyweight the dataset 406A, e.g., to give more or less credibility to theclassification it specifies.

The server system 112 can instruct the robots 104A-104D to store thedataset 406A in its local cache. For example, the designation couldinclude a data flag, a label, an instruction, a version number of alocal cache, and an indicator in a message header that is transmitted tothe robots 104A-104D. Version numbers can be provided for individualdatasets, for the state of the cache as a whole, and/or to indicate thestate of the machine learning model used to generate the embedding in adataset. By specifying the appropriate version of cache contents, if arobot cancels an update or loses connectivity partway through, theserver system can check the version of the most recently completed cacheupdate to determine what updates are needed for a robot. In otherexamples, the server system 112 specifies that the dataset 406A shouldbe cached by transmitting the dataset 406A over a certain source, port,or particular API. The version number of the local cache allows therobots 104A-104D to track what embeddings should included in the localcache. The server system 112 can verify the embeddings stored in thelocal cache of each robot 104A-104D based on the version number of thelocal cache.

The server system 112 may synchronize the datasets in the local cachesbetween each of the robots 104A-104D. The server system 112 canperiodically synchronize the local caches between each of the robots104A-104D on a daily basis, weekly basis, or a monthly basis. The serversystem 112 synchronizes the local caches by retrieving the datasets fromeach of the robots 104A-104D. The server system 112 distributes theretrieved datasets from each of the robots 104A-104D such that each ofthe robots 104A-104D includes datasets from each of the other robots104A-104D. As a result, each of the robots 104A-104DA through 104D,include the same datasets after each synchronization.

FIG. 8 is a block diagram that illustrates an example of a qualityanalysis module 704 to assess the quality of the information fromrobots. The quality analysis module 704 assesses the quality of thereceived embedding information from the robots 104A-104D. The qualityanalysis module 704 assesses the datasets by evaluating and filteringthe datasets using various criteria. For instance, the various criteriamay include accuracy of classification, consistency with reference data,and redundancy with respect to other datasets, to name a few examples.

One technique that the quality analysis module 704 can use to evaluatedatasets is to map embeddings to a high-dimensional space, e.g., avector space, and assess the relative positions of the embeddings in thespace. In general, embeddings encode characteristics of objects, and soembeddings for the same type of object should be similar. This willgenerally result in the embeddings for the same type of object beingroughly clustered together in the high-dimensional space. The separationbetween clusters can be indicative of discrimination between the objecttypes represented by embeddings in the clusters. These properties can beused to evaluate the quality of datasets that robots 104A-104D upload tothe server system 112. For example, an embedding for an object may beassessed to determine whether the embedding is appropriately close toother embeddings for the same object type, and at least a reasonabledistance away from embeddings for different object types.

The quality analysis module 704 maps the received embeddings in thedatasets 406 to the high-dimensional space 802. The high-dimensionalspace 802 may be an N-dimensional space, where N represents the numberof dimensions (e.g., number of values) in each embedding. For example,each embedding in a dataset may be a 128-element array of 64-bit values,and so may be compared to other embeddings in a 128-dimensional space.Other N-dimensional spaces are possible, depending on the number ofdimensions provided in the embedding.

The illustration provided in FIG. 8 shows a legend 801 to explainplotted elements. The illustration of the high-dimensional space 802shows mapped embeddings with each embedding represented by an “X”.Reference points “⋅” are also shown to represent the positions ofembeddings verified as representing a certain object type. To obtainreference data for assessing quality of newly learned classifications,training data or other high-quality examples can be provided to amachine learning model and used to generate embeddings. For example, animage known to show a cup and accurately classified by the machinelearning model to be a cup can be used to generate an embedding for the“cup” object classification. This embedding, known to be a correctrepresentation for a cup, can serve as a reference point in thehigh-dimensional space 802 against which other embeddings can becompared.

When the server system 112 receives a dataset from a robot, the qualityanalysis module 704 performs various steps to assess the quality of thedataset. For example, the quality analysis module 704 can compare thereceived embedding 825 with other embeddings, whether from datasetsuploaded by other robots or reference embeddings having known correctclassifications.

The quality analysis module 704 can filter the received embedding 825for redundancy in step 808, filter the received embedding 825 formaliciousness in step 810, filter the received embedding 825 for sensordata quality in step 812, and filter the received embedding 825 for themachine learning model version in step 814. Finally, the qualityanalysis module 704 applies a threshold comparison in step 816 on thereceived embedding 825.

For example, the received embedding 825 to the embeddings generatedusing the machine learning model. The high-dimensional space 802includes regions that correspond to various objects. For example, thehigh-dimensional space 802 includes a region 818 that includesembeddings for object type “Watch,” a region 822 that includesembeddings for object type “Mug,” a region 826 that includes embeddingsfor object type “Shoe,” a region 830 that includes embeddings for objecttype “Pen,” and a region 836 that includes embeddings for object type“Paper.”

The quality analysis module 704 maps the received embedding 825 to alocation in the high dimensional space 802. The closer the qualityanalysis module 704 maps the received embedding 825 to one of theregions in the high-dimensional space 802, the higher likelihood thatthe received embedding 825 represents the object described by thatregion in the high dimensional space 802. For example, the qualityanalysis module 704 maps the received embedding 825 in a locationnearest to the region 822 that includes embeddings for object type“Mug.” Due to the received embedding 825's proximity to the center ofthe region 822, a greater likelihood exists that the received embedding825 represents a “Mug.”

In some implementations, the received embedding 825 is compared to areference embedding derived from the machine learning model 402 storedon the server system 112. For example, the reference point “⋅” in theregion 822 that represents a “Mug” object illustrates a verifiedaccurate embedding for the object “Mug.” This reference point representsan embedding derived from the machine learning model 402 stored on theserver system 112. The quality analysis module may determine one or morereference embeddings for each object type that the machine learningmodel 402 the ideal embedding for each object defined in the highdimensional space 802 produced by the machine learning model 402 on theserver system 112. Specifically, the criteria check 804 determines theideal embedding through analyzing various embeddings stored on thedatabase 114 that represents the same object, such as a “Mug.” Forinstance, the criteria check 804 may use an average of the variousembedding outputs to determine the ideal embedding. In another instance,the criteria check 804 may select one of the various embeddings torepresent the ideal embedding. In another instance, the criteria check804 may use a heuristic, Bayesian, or any other type of statisticalmodel to determine the ideal embedding. The quality analysis module 704stores the ideal embedding in the database 114 for further comparison.

In some implementations, the quality analysis module 704 determineswhich ideal embedding the received embedding 825 most closelycorresponds to in the high dimensional space 802. For example, thequality analysis module 704 can employ a nearest neighbor algorithm todetermine which ideal embedding the received embedding 825 is in nearestproximity to in the high dimensional space 802. The quality analysismodule 704 compares the received embedding 825 to the ideal embeddingfor a “Watch” 818, to the ideal embedding for a “Mug” 822, to the idealembedding for a “Shoe” 826, and to the ideal embedding for a “Pen” 830.As a result, the quality analysis module 704 determines the receivedembedding 825 is in nearest proximity to the ideal embedding for a “Mug”822.

In some implementations, the quality analysis module 704 compares theclassification label corresponding to the received embedding to thelabel corresponding to the ideal embedding in nearest to the receivedembedding. For instance, the ideal embedding for the classificationlabel of a “Mug” may be in nearest proximity to the received embedding825 that includes a classification label of “Mug.” Alternatively, thequality analysis module 704 may compare the received embedding with oneor more other embeddings that correspond to two different classificationlabels. In response, the quality analysis module 704 may omit one orboth of these embeddings considering that both embeddings are withinproximity to one another and yet include different classificationlabels. The quality analysis module 704 may omit one or both of theseembeddings by not sharing with the other robots 104A-104D, not storingin the database 114, or not using to train the machine learning model506.

Then, the quality analysis module 704 measures and compares the distance824 between the received embedding 825 and the ideal embedding point 821to a threshold value. For example, the quality analysis module 704 usesa vector measurement to determine the vector distance 824 between thereceived embedding 825 and the ideal embedding point 821. If the qualityanalysis module 704 determines the vector distance 824 is greater thanthe threshold value, the quality analysis module 704 discards thereceived embedding 825 and waits for the next received embedding from arobot 104 or the database 114. Otherwise, the quality analysis module704 proceeds to the next process.

In some implementations, the quality analysis module 704 filters thereceived embedding 825 for redundancy in 808. Rather, it is importantfor the database 114 to store different embeddings to ensure the robots104A-104D have a more diverse set of data to improve identification ofsimilar and varying objects.

In some implementations, the quality analysis module 704 filters thereceived embedding 825 to avoid insecure or malicious inputs in step810. For example, the quality analysis module 704 may determine whetheran embedding has been tampered with or assigned an incorrectclassification. The user 106 may have entered the wrong classificationlabel for an object, for example, may have taught a robot to provide anerroneous classification for an object. In some instances, a dataset maybe falsified, in which the correct embedding may be replaced with adifferent one. The quality analysis module 704 may detect these errorsor mis-classifications in datasets by comparing the received embeddingwith a reference embedding for the same classification. For example, ifthe received embedding is classified as a cup, but the vector distancefrom an embedding for a cup that is known to be correct, the dataset canbe determined to be in error. Similarly, the server system 112 can usesensor data uploaded with a dataset to generate a correspondingembedding. If the embedding does not match the embedding that wasuploaded, then the server system 112 may determine that the embeddingmay have been falsified.

In some implementations, the quality analysis module 704 filters thereceived embedding 825 for sensor data quality (step 812). The qualityanalysis module 704 checks for sensor data quality by analyzing whetheran image is too dark, too bright, out of focus, or if the image is notincluded in the feature data of the dataset. Additionally, the qualityanalysis module 704 checks for an obstruction of a detected object inthe image and any inconsistencies between shape of depth information andthe image data. The quality analysis module 704 also checks for missingsensor information, time stamps, GPS location information in theadditional metadata, and an existence of the additional metadata.

In some implementations, the quality analysis module 704 may assesswhether the image is too dark or too bright, for example, by determininga mean luminance. In some implementations, the quality analysis module704 may execute assess whether the image data is out of focus or blurry.For example, the application may perform edge detection or perform adiscrete Fourier transform (DFT) to assess image quality. If theseprocesses show poor edge contrast or a low amount of high frequencies,the image data and the dataset as a whole may be consideredunsatisfactory and not used for training the model.

In some implementations, the quality analysis module 704 may utilize anexternal server for external validation of the image data. For instance,the external server may execute an image recognition process or shaperecognition process to classify an object in the image data. The qualityanalysis module 704 may transmit the image data and correspondingclassification label from the dataset 406 to the external server to seeif the results of the image recognition process or the shape recognitionprocess agrees with the corresponding classification label. If theresults of the image recognition process or the shape recognitionprocess matches with the corresponding classification label, the qualityanalysis module 704 may pass the dataset 406 to the process in 814. Ifthe results of the image recognition process or the shape recognitionprocess do not match with the corresponding classification label, thenthe server system 112 may send a notification to the client device 108of the user 106 that an incorrect classification label exists for theembedding. As such, the server system 112 may request an edit to theclassification label from the user 106. Alternatively, the server system112 can provide updates to the image recognition process or the shaperecognition process if their results are incorrect and theclassification label provided in the dataset 406 is correct.

In some implementations, the quality analysis module 704 filters thereceived embedding 825 for the machine learning model version number in814. For instance, the quality analysis module 704 analyzes theadditional metadata in the dataset 406. As previously mentioned, theadditional metadata in the dataset 406 includes a version code number ofthe current machine learning model stored on the robot 104 thattransmitted the dataset 406. The additional metadata can also includelocational information corresponding to whether the robot 104 identifiedthe object represented by the embedding. Additionally, the additionalmetadata can also include a description of how the robot 104 determinedthe classification of the identified object, such as with user input orwith comparison to other classification labels and correspondingembeddings stored in the local cache of robot 104.

In some implementations, the quality analysis module 704 compares theretrieved version code number of the current machine learning modelstored on the robot 104 to the version number of the machine learningmodel stored on the machine learning model 402 on the server system 112.If the quality analysis module 704 determines the version numbersbetween the two machine learning models (e.g., the machine learningmodel on the robot 104 and the machine learning model on the serversystem 112) matches (e.g., indicating the same machine learning modelexists on both the robot 104 and the server system 112), then thequality analysis module 704 proceeds to the next process. Otherwise, thequality analysis module 704 indicates that the robot 104, such as robot104A that transmitted dataset 406A, does not include the latest machinelearning model 402 to the server system 112. As such, the criteria check804 discards the dataset 406A. Additionally, the server system 112transmits the machine learning model 402 to the robot 104A. In response,the robot 104A will remove its machine learning model 402 from memoryand erase the datasets in its local cache 404A. In some implementations,the server system 112 transmits an instruction to the each robot 104 toerase the datasets in their respective local cache. The instruction maybe included with the transmitted machine learning model 402. In otherimplementations, the server system 112 transmits the instruction as anindividual message. In response to a robot 104 receiving theinstruction, the robot 104 erases the contents of its local cache.

In some implementations, the quality analysis module 704 filters thereceived embedding 825 by comparing a location of the received embedding825 in the high dimensional space 802 to a threshold value in 816. Forinstance, each region in the high dimensional space 802 that defines anobject, such as region 822 that defines a “Mug,” region 818 that definesa “Watch,” region 836 that defines a “Paper,” region 830 that defines a“Pen,” and region 826 that defines a “Shoe.” Each of the regions includea threshold region for filtering purposes. For example, threshold region827 for the “Mug” object, threshold region 829 for the “Shoe” object,threshold region 831 for the “Pen” object, threshold region 833 for“Paper” object, and threshold region 835 for “Watch” object. Eachthreshold region defines an N-dimensional region surrounding the idealembedding for the object type, which allows for an acceptable embeddingof the same object type.

In some implementations, the quality analysis module 704 measures avector distance between a location of the received embedding 825 to alocation of the ideal embedding closest in proximity to the location ofthe received embedding 825 in the high dimensional space 802. Thisprocedure allows the quality analysis module 704 to determine whichideal embedding is in closest proximity to the received embedding 825 inthe high dimensional space 802. Once the ideal embedding is determinedthat is closest to a location of the received embedding 825, the qualityanalysis module 704 determines whether the location of the receivedembedding 825 falls within the threshold region corresponding to theideal embedding. For example, the quality analysis module 704 determinesthe received embedding 825 is in nearest proximity to the region 822that defines a “Mug.” As a result, the quality analysis module 704determines whether the location of the received embedding falls withinthe threshold region 827 for the “Mug.” As illustrated in FIG. 8, thereceived embedding 825 falls within the threshold region 827 and passesstep 816. Alternatively, if the embedding fell outside of the thresholdregion corresponding to the closest ideal embedding, the qualityanalysis module 704 discards the dataset 406 that includes thatembedding.

In other implementations, the quality analysis module 704 may designatethe embeddings that fall within a threshold region, such as thresholdregion 827, as embeddings to transmit to the robots 104A-104D. This isbecause these embeddings indicate a higher likelihood of representing anobject inside the threshold region 827. As a result, quality analysismodule 704 selects the embeddings found outside the threshold region 827to be stored in the database 114. In some implementations, the qualityanalysis module 704 designates the embeddings found outside thethreshold region, such as threshold region 827, to not be used train themachine learning model 506. In some implementations, the qualityanalysis module 704 will discard any embeddings that exist outside athreshold distance from the ideal embedding. For example, the locationof embedding 837 exists outside of a threshold distance from each regionin the high dimensional space 802. The distance 828 between the idealembedding of a “shoe” region and the embedding 837 makes As such, thequality analysis module 704 will discard the dataset corresponding toembedding 837.

In some implementations, the quality analysis module 704 produces aquality score indicative of the quality of the embedding of the receivedembedding 825 passes each of the steps 806 through 816 in the qualityanalysis module 704. The quality score represents how confident thequality analysis module 704 is that the received embedding represents anobject, such as a “Mug” or “Pen.”

In some implementations, the quality analysis module 704 produces thequality score based on the processes performed by the quality analysismodule 704 to assess the quality of the embedding. For example, asdiscussed in 806, the quality analysis module 704 utilizes the closenessof the location of the received embedding 825 to a region in the highdimensional space 802 that defines on object type to generate aproximity score. The closer the location of the received embedding 825to the location of the ideal embedding for that region, the higher theproximity score. Likewise, the farther away the location of the receivedembedding 825 to the location of the ideal embedding for that region,the lower the proximity score. The quality analysis module 704 providesthe proximity score as a quality score to the quality assurance system702 for further comparison to the quality threshold.

In other examples, the quality analysis module 704 produces the qualityscore based on other criteria. The other criteria includes a levelquality of feature or sensor data provided by the robot 104 for thecorresponding dataset 406. The other criteria can also include theconsistency of embeddings in proximity to the received embedding 825 inthe high dimensional space 802. For example, how close the embeddingvalues are to one another; how close the characteristics of the featuredata corresponding to each embedding in proximity to the receivedembedding 825 corresponds to one another, and an identification of therobot that provided the embedding.

In some implementations, the quality analysis module 704 can produce thequality score of the received embedding 825 based on how the receivedembedding 825 changes the accuracy of the machine learning model 506. Ifthe received embedding 825 increases the accuracy of the machinelearning model 506, then the quality analysis module 704 may generate ahigher value quality score. Alternatively, if the received embedding 825decreases the accuracy of the machine learning model 506, then thequality analysis module 704 may generate a lower value quality score. Insome implementations, the accuracy of the machine learning model 506 mayadjust for a particular object type as received by the embedding 825.

In some implementations, the quality analysis module 704 may adjust thequality score of the received embedding 825 if the correspondingclassification label includes personalized information. For instance, ifthe classification label of the received embedding 825 includespersonalized aspects such as “my favorite spoon,” “john's toy,” or“Brian's glasses.” The quality analysis module 704 may search for keyphrases in the classification label such as “my” or any name thatindicates a personalized aspect of the object represented by thereceived embedding 825. The quality analysis module 704 may adjust thequality score by increasing a value of the quality score if apersonalized aspect is recognized.

In some implementations, a robot 104 may have a history corresponding tothe type of dataset 406 provided. For instance, robot 104C may have ahistory of providing higher quality embeddings while robot 104A may havea history of providing lower quality embeddings. The lower qualityembeddings provided by robot 104A over time may indicate that the robot104A includes a bad component, such as a broken camera. Alternatively,the lower quality embeddings provided by robot 104A may indicate arequired update to its locally stored machine learning model 402. As aresult, the quality analysis module 704 adjusts the quality score forthat received embedding 825 based on a determination of the robot 104'shistory for providing high or low quality datasets 406.

FIG. 9 is a block diagram that illustrates an example of a system 900for testing a machine learning model 506. The machine learning model 506represents an updated version of the machine learning model 402 used inFIG. 7. Once a set of high-quality datasets is identified, and themachine learning model 506 is trained to incorporate the classificationinformation represented in those datasets. The machine learning model506 is tested after training, or as a part of training. The testing hasthe general purpose of verifying the accuracy of the machine learningmodel 506. For example, testing can assess whether training effectivelyachieved the goal of teaching the machine learning model to classify thenew types of objects indicated in the datasets uploaded by the robots.If the machine learning model 506 does not provides an accurateclassification in response to the input data for a data set (e.g.,provides a classification that is different from the one learned by therobot), then the training may continue until the machine learning model506 can accurately classify the object.

As another example, testing can determine whether the machine learningmodel 506 maintains an appropriate level of accuracy for classifyingobjects that it could previously classify. Training the model shouldimprove accuracy not diminish it, so the server system 112 can enforcerules that training should not degrade performance with some or allcategories of objects. If training has decreased the ability of themachine learning model to accurately classify objects of a particulartype, the server system 112 may continue training and use examples ofthe particular type. This testing and continued training can provide awell-rounded model that is not improperly swayed by new trainingexamples. This way, the performance of a model can steadily improve overtime, since users would not want object recognition performance todiminish over time or fluctuate depending on the object type from oneupdate to the next.

The system tests the quality of the machine learning model 506 in atraining module 902 and an evaluation/testing module 904. The systemtests the machine learning model 506's quality by providing data fromdatasets 406 to the machine learning model 506 stored on the serversystem 112 and in response, assessing the output of the machine learningmodel 506.

In some implementations, the system provides data from the datasets 406provided by the robots 104A-104D each time the robot learns of a newobject. A robot, such as robot 104C, may learn of an object, such as a“picture,” that its local machine learning model 402 has not yet learnedto identify. The output of the machine learning model 402, or a layer ofthe machine learning model 402, can produce a new embedding that therobot 104C does not yet understand. This is because the robot 104C islearning a “picture” object for the first time. The robot 104C requestsfor a classification label for this new object from the user 106. Theuser 106 provides a classification label “picture” for the object“picture” and the robot 104C corresponds the newly receivedclassification label with the newly produced embedding and feature datacaptured by the robot 104C in a dataset 406. The robot 104C provides thedataset 406 to the server system 112 to provide to the other robots andto update the machine learning model 506 stored on the server system112.

In some implementations, the system provides data from the datasets 406retrieved from the database 114 to test the output or a hidden layer ofthe machine learning model 506 stored on the server system 112. Afterthe server system 112 trains the machine learning model 506 to detectthe new datasets 406 provided by the robots 104A-104D, the server system112 verifies the datasets 406 derived from the machine learning model506. The server system 112 performs this verification with the datasets406 from the database 114 to ensure the correct embedding andclassification output can be derived from the machine learning model506. In some implementations, once the server system 112 determines thecorrect output can be properly derived from the machine learning model506, the server system 112 provides the machine learning model 506 tothe robots 104A-104D.

In some implementations, training module 902 seeks to train the machinelearning model 506 with newly received datasets 406. For example, robot104A provides a dataset 406C for a “bicycle” object and robot 104Bprovides a dataset 406D for a “glasses” object. The dataset 406Cincludes feature data 908, an embedding 910, and a classification label912 representing the “bicycle” object. The dataset 406D includes featuredata 914, an embedding 916, and a classification label 918 representingthe “glasses” object.

In some implementations, the server system 112 provides feature datafrom each of the datasets 406 to the machine learning model 506. Forexample, the server system 112 provides the feature data 914 of the“glasses” object to the machine learning model 506. As illustrated inthe training module 902, a layer of the machine learning model 506 canproduce an output that includes an embedding 920 and a correspondingclassification label 922. The server system 112 compares the outputclassification label 922 denoting a “pencil” to the correspondingclassification label 918 provided in the dataset 406D. The results ofthe comparison do not match, as the classification label 922 denoting a“pencil” is not the same as the classification label 918 denoting“glasses.” In response, the training module 902 updates the machinelearning model 506.

In some implementations, the training module 902 updates the machinelearning model 506 by providing the received feature data 914 of“glasses” and the classification label 918 denoting “glasses” as inputto the machine learning model 506. In response, the machine learningmodel 506 produces an embedding 920 that corresponds to theclassification label 918 denoting “glasses.” The server system 112stores the feature data 914, the produced embedding 920, and theclassification label 918 denoting “glasses” in the database 114. Then,the training module 902 provides the next subsequent dataset, dataset406C, to the machine learning model 506 to evaluate its output at aparticular layer.

In some implementations, the evaluation module 904 evaluates the outputat a particular layer of a machine learning model 506. After thetraining module 902 trains the machine learning model 506, theevaluation module 904 evaluates the newly machine learning model 506with data stored in the database 114. The data stored in the database114 includes reference data that is trusted and verified by previousmachine learning model versions. The reference data includes aclassification label corresponding to an embedding and feature data. Forexample, reference data can include a classification label for a “cup”object, an embedding of the “cup” object, and feature data captured by arobot 104 describing the “cup” object. The evaluation model 904 isrequired to evaluate the machine learning model 506 because the machinelearning model 506 must be backwards compatible. For instance, themachine learning model 506 can identify a “cup” object, a “plate”object, and a “fork” object. The training module 902 may then train themachine learning model 506 to identify a “camera” object. After thetraining module 902 trains the machine learning model 506 to recognizethe “camera” object, the newly machine learning model 506 needs to beevaluated to ensure it can still recognize the “cup” object, the “plate”object, the “fork” object, and now the “camera” object.

In some implementations, the reference data can include a high qualitydata set. The high quality data set can include a high quality embeddingthat nearly represents the ideal embedding. The high quality embeddingcan be indicated in the database 114 by an indicator. The high qualityembedding can include high quality image data, high quality RGBD data, ahigh quality embedding, or a combination of data.

In some implementations, the evaluation module 904 retrieves featuredata 924 of data 906 from the database 114. The data 906 includessimilar data found in the dataset 406 for a particular object. Forinstance, the data 906 for a particular object such as “utensils”includes feature data describing of utensils, a classification label 922of “utensils”, and an embedding 923 that represents utensils. In anotherexample, the data 906 for a “cup” object includes feature data 924 of acup, classification label 926 of a “cup”, and an embedding 927 thatrepresents a cup. The evaluation module 904 provides the feature data924 of a cup as input to the machine learning model 506. The trainedmachine learning model 506 produces an embedding 928 and a correspondingclassification label 930.

In some implementations, in order to evaluate the machine learning model506, the evaluation model 904 performs tests under comparison module 932to compare the embedding 928 produced by the machine learning model 506to one or more embeddings of a similar object type stored in thedatabase 114. If the results match, the evaluation model 904 maydetermine the machine learning model 506 can properly recognize theparticular object and proceed to test the next object from the database114.

In some implementations, the comparison module 932 includes a test forthe evaluation module 904 to evaluate the quality of the machinelearning model 506 using heuristic models 919. In addition, thecomparison module 932 includes a test for the evaluation module 904 thatutilizes a threshold comparison 921. For instance, the evaluation model904 may compare the embedding 928 with the embeddings stored in thedatabase 114 using one or more heuristic models. The database 114 maystore multiple embeddings for the “cup” object. The evaluation model 904may use the one or more heuristic models to compare the embedding 928produced by the machine learning model 506 to the multiple embeddings inthe database 114. As a result, the evaluation module 904 can determinewhether the machine learning model 506 produced a correct embedding 928.

In some implementations, the evaluation model 904 may use a thresholdcomparison 921 to determine whether the machine learning model 506produced a correct embedding 928. For instance, the evaluation model 904may use a vector comparison to compare the bits or bytes between theembedding 928 and each embedding in the database 114 that represents a“cup” object. The evaluation model 904 may set a threshold, such as nomore than 10 rows between the two embeddings can be different forexample, in order for the embedding 928 to pass the assessment test. Theevaluation model 904 can set other threshold comparison values. Theevaluation model 904 utilizes the threshold comparison test 921 todetermine whether the machine learning model 506 produced a correctembedding 928.

In some implementations, the evaluation model 904 provides an indication934 to the server system 112 after evaluating the machine learning model506. The indication 934 can indicate the machine learning model 506 isproperly trained. As a result, the server system 112 can transmit themachine learning model 506 to the robots 104A-104D for storage.

Alternatively, the indication 934 can indicate the machine learningmodel 506 did not recognize one or more objects from the database 114.For example, the machine learning model 506 recognized the “cup” and the“utensils” objects but did not recognize the “glasses” object. As aresult, the server system 112 provides the machine learning model 506 tothe training module 902 to retrain the machine learning model 506 todetect the “glasses” object. In addition, the machine learning model 506may not recognize multiple objects, and the training module 902 can beused to retrain the machine learning model 506 to detect each of themultiple objects. Once the evaluation module 904 creates an indication934 that the machine learning model 506 is properly trained, then theserver system 112 transmits the machine learning model 506 to the robots104A-104D.

In some implementations, the server system 112 transmits the machinelearning model 506 to each of the robots 104A-104D to replace a machinelearning model 504 stored on each of the robots 104A-104D. The robots104A-104D remove their previous machine learning model 504 in responseto receiving the machine learning model 506 from the server system 112.In addition, the robots 104A-104D clear the datasets 406 from theirrespective caches.

FIG. 10 is a flowchart that illustrates an example of a process 1000 forassessing and sharing information learned by robots. The process 1000may be performed by one or more computers. For simplicity, the processis described as being performed by the server system 112, but anyappropriate computing system or combination of computing systems can beused.

In the process 1000, the server system 112 receives objectclassification examples from a plurality of robots (1002). Each objectclassification example can include (i) an embedding that a robotgenerated using a machine learning model, and (ii) an objectclassification corresponding to the embedding. Each robot 104Adesignates each dataset 406 as “new,” indicating to the server system112 to distribute each dataset 406 to the other robots. In someimplementations, each dataset 406 can include an embedding, acorresponding classification label, corresponding feature or sensordata, and additional metadata corresponding to the embedding.

In each of the object classification examples, the embedding a robotgenerated using its machine learning model is based on sensor datagenerated by the robot describing an object detected by sensors of therobot. For example, the robot captures sensor data of a “cup” objectusing sensors of the robot. The robot provides the sensor data as inputto the local machine learning model to generate an embedding from thesensor data. The corresponding object classification for the embeddingindicates a classification for the detected object. For example, a usermay provide the classification label of “cup” for the “cup” object byinteracting with a client device 108 or with the robot itself.

In some implementations, the embeddings of the respective classificationexamples include embeddings generated by different robots that each usea particular machine learning model having a particular training stateto generate the embeddings. For example, each robot 104A-104D includesthe same machine learning model 402 that includes the same structure andtraining state. This allows the robots 104A-104D to compare embeddingsthat the robots generate with the embeddings those other robots provide.If two robots use different machine learning models, the two robots mayproduce different embeddings for the same object, causing amisclassification of the object.

In some implementations, the server system 112 receives, for each of thereceived object classification examples, sensor data, generated by arobot that describes the object corresponding to the objectclassification example. For example, the server system 112 receivessensor data that includes data indicating the shape, color, size,contour, and texture of the object. The server system 112 evaluates thequality of a classification example based on the received sensor datafrom each of the robots 104A-104D.

The server system 112 evaluates the object classification examples basedon a similarity of the embeddings of the received object classificationexamples with other embeddings (1004). The server system 112's qualityassurance system 702 provides a quality assessment of an embeddingreceived from each of the robots 104A-104D. The quality analysis module704, included in the quality assurance system 702, produces a qualityscore that indicates the quality of embedding in the dataset 406received from each robot 104. The quality analysis module 704 assessesthe embedding information by evaluating and filtering the embeddinginformation using various criteria, including comparing distancesbetween embeddings when mapped to a high-dimensional space.

The server system 112 evaluates the object classification examples bydetermining a quality score for the particular embedding of a particularobject classification example. The server system 112 determines thequality score by analyzing a level quality of sensor data provided bythe plurality of robots. The server system 112 analyzes the levelquality by determining a match between the sensor data and the embeddingby providing the sensor data to the machine learning model stored on theserver system 112. The machine learning model provides an outputembedding that the server system 112 compares to the received particularembedding. Additionally, the server system 112 compares an outputclassification label from the machine learning model to an objectclassification corresponding to the particular embedding from theparticular object classification example. The server system 112 retrainsthe machine learning model to detect the particular embedding and toproduce a correct classification label that matches the objectclassification in response to the server system 112 determining that theoutput classification label from the machine learning model does notmatch the object classification corresponding to the particularembedding.

Additionally, the server system 112 determines the quality score byanalyzing how the object classification examples adjust an overallaccuracy of the machine learning model. For example, if the objectclassification example improves the overall accuracy of the machinelearning model, the server system increases the quality scorecorresponding to that particular embedding.

The server system 112 also determines the quality score by analyzingprevious levels of quality of other object classification examplesprovided by the plurality of robots. For example, the server system 112analyzes previous sensor data, classification examples, andcorresponding quality scores from robots 104A-104D when analyzing aparticular embedding received from robot 104B. The server system 112 canuse this previous data for determining a quality score for a particularembedding from robot 104B, for example. Additionally, the server system112 can use this previous data for determining a quality score for aparticular embedding from any robot 104A-104D of a similar object type.The greater the similarities between the current data and any past datafrom any of the robots 104A-104D that produce a high quality score, thegreater the quality score will be for the particular embedding.

In some implementations, the quality score represents a likelihood thatthe object classification matches the object corresponding to theparticular object classification example. For example, the quality scorerepresents a likelihood that the object classification of a “cup”matches the actual object corresponding to the received embedding (e.g.,the received embedding represents the “cup” object). The higher thelikelihood that the object classification matches the objectcorresponding to the received embedding from a robot, such as robot104A, the greater the quality score.

In some implementations, the server system 112's quality assurancesystem 702 determines, for a particular embedding of a particular objectclassification example, a level of similarity of the particularembedding with respect to one or more other embeddings having a sameobject classification as the particular object classification example.For example, the quality assurance system 702 determines a level ofsimilarity of a received embedding for a “cup” object to one or moreother embeddings for a “cup” object. The quality assurance system 702may determine the level of similarity by comparing a distance betweenthe two embeddings mapped in a high dimensional space 802. The closerthe distance (e.g., vector distance) between the two embeddings, thehigher level of similarity between the two embeddings.

The server system 112 selects a subset of the object classificationexamples based on the evaluation of the quality of the embeddings(1006). For example, the quality analysis module 704 may designate theembeddings that fall within a threshold region as embeddings to transmitto the robots 104A-104D. Being inside the threshold region indicates ahigher likelihood of the embedding representing an object. On the otherhand, the quality analysis module 704 stores the embeddings existingoutside the threshold region 827 in the database 114. In otherimplementations, the quality analysis module 704 discards any embeddingsthat exist outside a threshold distance from the ideal embedding. Bydiscarding the embedding, the corresponding dataset is also discarded.

The server system 112 selects the particular object classificationexample to include in the subset based on the quality score satisfying athreshold. In some implementations, the server system 112 selects theparticular object classification example, such as an embeddingrepresenting a “cup” object, based on the quality score being greaterthan a threshold value of 60. If the server system 112 determines thequality score of the particular object classification example is notgreater than the threshold value, the server system 112 does not includethe particular object classification example in the subset.Additionally, the server system 112 may store that particular objectclassification example in the database 114. Alternatively, the serversystem 112 may discard that particular object classification example.

In some implementations, the server system 112 evaluates the objectclassification example by determining, for a particular embedding of aparticular object classification example, a level of similarity of theparticular embedding with respect to one or more other embeddings havinga different object classification from the particular objectclassification example. For example, the server system 112 can compare adistance in the high dimensional space between the received embeddingthat represents a “cup” object to a mapped embedding that represents a“pencil” object. In addition, the server system 112 can compare adistance in the high dimensional space between the received embeddingthat represents a “cup” object to a mapped embedding that represents a“hat” object. The distances between the received embedding and anothermapped embeddings can be measured in the high dimensional spaces asvector distances. As a result, the server system 112 determines thelevel of similarity between the received embedding and the one or moreother embeddings based on how close they exist in the high dimensionalspace to one another.

The server system 112 distributes the subset of the objectclassification examples to the robots in the plurality of robots (1008).The server system 112 transmits, to each of the robots in the pluralityof robots, the subset of the object classification examples anddesignates the transmitted classification examples to be stored in alocal cache of each of the robots. For example, the server system 112tags the subset of the object classification examples with a label suchas “store’ to indicate to the robots to store in their respectivecaches. While the cache is described as being local to the robots, therobots may also take advantage of network-based or “cloud” storage insome instances. Accordingly, the robots may store some or all of thecached data locally or remotely, dependent on the implementation.Further, using remote storage for a cache can be separate from sharingembeddings for distribution, since each robot may have a private cacheor network storage account specifically for that robot.

The server system 112 distributes the subset of the objectclassification examples to the robots 104A-104D that each store a copyof the same machine learning model 402. Each machine learning model 402includes the same training state and a similar structure. The serversystem 112 distributes the subset of the object classification examplesin response to the quality analysis module 704 analyzing the receivedembedding.

In some implementations, the server system 112 synchronizes the cachesof the robots in the plurality of robots so that each of the pluralityof robots stores the classification examples in the selected subset in alocal cache of the robot. For example, the server system 112 canperiodically synchronize the local caches between each of the robots104A-104D on a daily basis, weekly basis, or a monthly basis. Aftersynchronization, each robot in the plurality of robots include the sameclassification examples in their respective local caches.

In some implementations, the quality analysis module 704 produces aquality score that indicates a quality of the analyzed embedding. Thequality score represents how confident the quality analysis module 704is that the received embedding represents a particular object.

In some implementations, the quality threshold 704 compares the qualityscore of each dataset 406 to the quality threshold. If the qualityanalysis module 704 determines that the quality score is greater thanthe quality threshold, then the quality analysis module 704 allows theserver system 112 to transmit the dataset to each robot 104. The robots104A-104D stores the new dataset in a respective local cache 404.

In some implementations, the quality analysis module 704's indication toshare or not share the dataset 406 is stored in the database 114 withthe dataset 406. The server system 112 will use the stored indication inthe database 114 to determine whether to use that particular embeddingto generate an updated machine learning model 506. For example, if thedatabase 114 stores an indication that the embedding is not to beshared, then the server system 112 will not use that embedding togenerate the updated machine learning model 506.

In some implementations, the server system 112 trains a second machinelearning model using the selected subset of the classification examples.For example, the server system generates the updated machine learningmodel 506 with the selected subset of the classification examples. Theserver system 112 receives, for each of the object classificationexamples, sensor data that describes the object corresponding to theobject classification example. The server system 112 can receive sensordata from each of the robots 104A-104D. For example, the sensor data mayinclude the shape, color, size, contour, and texture of the object.Additionally, the sensor data may include red, blue, green, and depthdata provided by RGBD sensors.

During training, the server system 112 generates an updated version ofthe machine learning model 504. For example, the server system 112updates the training state and the structure of the machine learningmodel 504 to produce the updated machine learning model 506. Oncetraining has progressed to the point that the server system 112determines the correct output can be properly derived from the updatedmachine learning model 506, the server system 112 provides the machinelearning model 506 to the robots 104A-104D.

The server system 112 distributes the trained second machine learningmodel 506 to the robots in the plurality of robots. The trained secondmachine learning model 506 replaces the machine learning model stored ateach of the robots in the plurality of robots. In addition, the serversystem 112 provides an instruction to each of the robot in the pluralityof robots to remove the distributed classification examples from a localcache of the robot. The trained second machine learning model 506includes the ability to detect the objects represented by the removeddistributed classification examples. As a result, the distributedclassification examples are not required to be stored by the local cachein each of the robots.

FIG. 11 is a diagram that illustrates an example system 1100 forenhancing robot learning. As discussed above, robots can quickly acquireknowledge about their environment by associating information withembeddings that represent observations made by a robot. For example, arobot may capture image data showing an object that is not known to therobot. The robot can use a machine learning model, such as a neuralnetwork object classification model, to process sensor data thatdescribes the object and generate an embedding, e.g., a vector or set ofvalues, that represents the object in an encoded form. If the objectclassification model cannot determine the correct classification of theobject, a human user or another robot or system may be able to supplythe correct classification. The robot may then store the embedding forthe object in association with the classification for the object, inorder to quickly learn to recognize the object. When the object isobserved again, the robot can process the sensor data and compare theresulting embedding with stored embeddings. When a generated embeddingmatches or is sufficiently similar to a stored embedding, the robot candetermine that the classification for the stored embedding isappropriate.

The ability to generate, store, and use embeddings for objectclassification and other tasks can allow a robot to quickly andefficiently learn to function in new environments and situations. Forexample, generating and storing an embedding requires a very smallamount of time and computation, and allows the robot to almost instantlyexpand its knowledge base. By contrast, re-training the machine learningmodel often requires many training examples as well as computationallydemanding iterative training processes.

A further advantage of robot learning using embeddings is the abilityfor robots to easily exchange embeddings with other robots using thesame machine learning model. This allows learned information to bequickly disseminated among a fleet of robots. However, it may not bedesirable for a robot to share all of the embeddings that it generateswith the remote server system or with other robots in the fleet,especially if the embeddings represent private or confidentialinformation. For example, the robot may share with the server systemembeddings related to generic objects (e.g., a chair, a kitchenimplement), but it may not share generated embeddings related toproprietary objects (e.g., a proprietary machine), personal objects(e.g., a user's favorite mug), objects that containpersonally-identifiable information (e.g., a credit card), or othersensitive objects (e.g., a valuable painting or other object). Tocontrol the use of information learned by a robot, some embeddings canbe designated as “public embeddings” that are shared and otherembeddings can be designated as “private embeddings” that are notshared. Although the robot does not share private embeddings with otherrobots or with a central server system for distribution, the robot mayretain the private embeddings in a local cache so that it retains thebenefit of the learned information represented by the embeddings. Whenthe embeddings and associated classifications represent learned objects,the private embeddings can enable the robot to recognize thecorresponding objects when it encounters them.

The robot may determine the sharing status (e.g., public, private, orlimited sharing) of an embedding by analyzing information related tothat embedding (e.g., a classification, metadata, tag, label, sensordata, or the embedding itself) using a set of sharing rules. In somecases, the sharing rules may be predetermined and may be based on any ofvarious factors, including the classification of the embedding, thelocation of the object associated with the embedding, or other factors.In some implementations, a user of the robot may customize the sharingrules. In some examples, a user may instruct the robot that a particularobject is private, so that its embedding is not to be shared with theserver system or other robots in the fleet. Similarly, a robot may beconfigured to share embeddings relating to objects observed while therobot is in certain locations, e.g., public places, but not to shareembeddings related to object observed in other locations, e.g., in aprivate residence. In some cases, a robot may be configured to shareparticular embeddings with only a limited subset of other robots. Forexample, a robot may share certain embeddings only with other robots ina similar location (e.g., sharing among robots in a factory) or in asimilar role (e.g., sharing among robots that are home assistants).

Generally, an embedding generated using a machine learning model has aunique meaning tied to the training state of the machine learning model.The embedding may represent a result of processing input data using themachine learning model, for example, in the case of a neural networkmodel, information generated at an output layer of the neural network orat a hidden layer of the neural network. For a given observation (e.g.,an object detected in image data), different machine learning modelparameters would produce a different embeddings for the same set ofinput data. As a result, changing from a first machine learning model toa second machine learning model would mean that the previously storedembeddings, generated using the first machine learning model, would nolonger be useful to compare with embeddings generated by the secondmachine learning model. In other words, changing the machine learningmodel would potentially cause the learning represented by the cachedembeddings to be lost.

For this reason, an updated machine learning model that was not trainedwith data about an object may not be able to correctly classify theobject, even with an embedding generated by a previous model. However, arobot may maintain the set of knowledge represented by embeddings byre-generating new embeddings when an updated machine learning model isreceived. The robot can generate a new embedding for an object, usingthe new machine learning model, and use the new embedding in order tocontinue to recognize the object when using the new network model.

In some implementations, the robot may store raw or processed sensordata associated with a generated private embedding. For example, therobot may store features, statistics, or scores extracted from sensordata related to the private embedding. When the robot receives anupdated machine learning model, the robot may regenerate each privateembedding in its local cache using the updated machine learning modeland stored raw or processed sensor data associated with each privateembedding. The robot may then store the regenerated private embeddings,along with the associated classification and the raw or processed sensordata, in its local cache. The robot may subsequently use a regeneratedprivate embedding to recognize and classify the related private objectusing its updated machine learning model.

In some implementations, after updating the machine learning model orregenerating the private embedding, the robot may remove from its localcache a private embedding generated by a previous version of the machinelearning model. In some implementations, the robot may retaininformation associated with a private embedding, including metadata, rawor processed sensor data, object classification, and sharing status, andassociate that information with the regenerated private embedding.

These techniques may provide one or more of the following advantages. Bydesignating some embeddings as private embeddings that are not sharedwith the server system or other robots in the fleet, individual robotsmay each protect the privacy of the robot's user while still allowingthe robot fleet to benefit from shared learning of information that isnot private or confidential. A robot may receive and use embeddingsshared by other robots, while still using its own private embeddings torecognize and classify private objects in its surroundings. Further, theparticular robot may share generated embeddings that are not private(i.e., embeddings that are limited or public) with the server system fordistribution, so that other robots in the fleet may receive and usethose public or limited embeddings without compromising the privacy ofthe particular robot's user. By allowing a user to customize the sharingrules used to determine the sharing status of an embedding, the user cantailor the privacy applied to embeddings according his preference. Forexample, a user that prefers an increased level of privacy may setsharing rules that allow fewer embeddings to be shared with other robotsin the fleet. By storing raw or processed sensor data related to aprivate embedding, the robot may regenerate private embeddings after therobot receives an updated machine learning model. By storing regeneratedprivate embeddings in its local cache, the robot may recognize andclassify objects related to the private embeddings using its updatedmachine learning model, which may not have been trained on the thoseparticular objects.

Referring still to FIG. 11, in the system 1100, a robot 1110 receivesdata from one or more sensors of the robot 1110. The computer system ofthe robot 1110 uses the sensor data to identify and classify one or moreobjects in the robot's surroundings. In some implementations, thecomputer system of the robot 1110 may include a machine learning modelthat generates an embedding that is related to an object identified bythe robot 1110. In some cases, a user may teach the robot theclassification of the object. For example, the robot may be located in auser's home and may identify an object that is a mug. The machinelearning model of the robot 1110 may generate an embedding that isrelated to the mug and the user may teach the robot that the identifiedobject is the mug belonging to a particular resident of the home (i.e.,“Joe's mug”). The robot 1110 may then store the embedding associatedwith the object, as well as the classification “Joe's mug” in a localcache of the robot 1110. By storing the embedding and classification inthe robot's local cache, the robot can identify the object as “Joe'smug” in the future, without retraining the machine learning model.

In some implementations, the robot may share embeddings stored in itscache with a remote server system, which may then distribute thoseembeddings to other robots in the fleet. In some cases, the robot maywish to share only some of the embeddings stored in its cache with otherrobots. For example, the robot may not share with other robotsembeddings it determines to be related to proprietary or personalobjects, objects that contain personally-identifiable information, orother sensitive objects. To indicate which embeddings it will share andwhich it will not share, the robot may designate the embeddings as“public” (to be shared), “private” (not to be shared), or “limited (tobe shared with a subset of robots). For example, a robot located in ahome may store an embedding associated with an object classified as a“tea cup.” Because “tea cup” is a generic object, the robot maydetermine that the embedding associated with “tea cup” may be sharedwith the robot fleet and so designate the “tea cup” embedding as“public.” Alternatively, the robot may also store an embeddingassociated with an object classified as “Joe's mug.” Because “Joe's mug”is a personal object, the robot may determine that the embeddingassociated with “Joe's mug” may not be shared with the robot fleet andso designate the “Joe's mug” embedding as “private.”

In some implementations, the robot may designate an embedding as“limited,” where the robot shares the embedding with a subset of otherrobots (e.g., shares only with robots in a particular location or role).For example, a robot located in a home may determine that even though“Joe's mug” is a personal object, the embedding associated with it oughtto be shared with other robots in the home so that they may alsoidentify it. In this case, the robot may designate “Joe's mug” as alimited embedding that can only be shared with other robots in the home.

The system 1100 includes a robot 1110, which can have the same featuresas any of the robots 104A-104D discussed above. For example, the robot1110 may be a device with computing capabilities that is capable ofmoving or interacting with its surroundings. The robot 1110 may includea computing system that includes computer hardware, such as one or moreprocessors, chipsets, general-purpose computing systems, memory systems,and data storage systems. In some cases, the robot 1110 may includeapplication specific computing hardware, including, but not limited to,microcontrollers, field programmable gate arrays (FPGAs), or applicationspecific integrated circuits (ASICs). The computer hardware of the robot1110 may be configured to execute software that controls the movementsand processes of the robot 1110.

The computer system of the robot 1110 may also include a local cache1150. The local cache 1150 may be a memory system or a portion of amemory system of the robot 1110 that stores data used by the computersystem of the robot 1110 for various computing functions.

The robot 1110 may also include sensors that collect data from therobot's surroundings. For example, the robot 1110 may be equipped withone or more cameras that capture images of the robot's surroundings. Thesensors may also include LIDAR, radar, proximity sensors, lightdetectors, or other sensors that enable the robot 1110 to detect andidentify objects in its surroundings. In some implementations, thesensor data 1115 collected by the sensors may include images of thesurroundings of the robot 1110 captured by one or more cameras of therobot 1110.

The surroundings of the robot 1110 may include one or more objects 1120,1121, 1130 that can be identified by the robot 1110. Robots 1110 locatedin different environments may identify different objects 1120, 1121,1130 in their surroundings. For example, a robot 1110 in a home mayidentify objects 1120, 1121, 1130 that include furniture (e.g., table,chair), decorative items (e.g., a vase, a painting), and personalbelongings (e.g., a user's favorite mug, a particular child's bed, apet's favorite toy). A robot 1110 in a factory may identify objects1120, 1121, 1130 that include equipment (e.g., a machine, a tool),protective gear (e.g., a hardhat, safety glasses), or output products(e.g., an individual manufactured widget, a box of widgets, etc.). Arobot 1110 may identify any of various objects in its surroundings. Inexample system 1100, the objects 1120, 1121, 1130 of the robot's localsurroundings include a mug (1121), a diamond ring, and a doll (1120), aswell as a tea cup and a baseball cap (1130).

The robot 1110 may identify an object 1120, 1121, 1130 in itssurroundings by analyzing sensor data 1115 collected by sensors of therobot 1110. For example, the cameras of the robot 1110 may capturesensor data images 1115 that depict one or more objects 1120, 1121, 1130in the robot's surroundings. The computer system of the robot 1110 mayanalyze the sensor data images 1115 to determine that there is an object1120, 1121, 1130 in the robot's local surroundings. The computer systemof the robot 1110 may use any of various techniques to identify theobject 1120, 1121, 1130. For example, the computer system may processthe sensor data image 1115 that contains an image of the object, thengenerate a bounding box within the image that follows the contour of theidentified object. In the example system 1100, the sensor data 1115includes images that depict the object 1122, which is a doll.

In some implementations, the computer system of the robot 1110 mayprocess the sensor data 1115 to extract features related to theidentified object 1122. For example, the computer system may process thesensor data 1115 to determine physical features of the object 1122, suchas location, size, dimension, shape, material composition, orientation,or other physical features. In some cases, the processed sensor data1115 data may include extracted physical features, extracted statisticalfeatures or scores, or other measures related to the object 1122 asdetermined from the collected sensor data 1115. The computer system ofthe robot 1110 may also analyze or process the sensor data 1115 in otherways, including, but not limited to, filtering, transforming,truncating, annotating, or augmenting the sensor data 1115. In someimplementations, the processed sensor data 1115 may include extractedfeatures that are required as input by a machine learning model 1140.

In some implementations, the robot 1110 may collect or generateadditional data related to an identified object 1122. For example, thecomputer system of the robot 1110 may collect or generate metadatarelated to an object 1122 that includes the location of the object 1122,the time and date at which the object 1122 was identified, or otherinformation related to the object 1122. The metadata may also includeother information related to the object 1122, for instance, the metadatamay indicate the user with whom the object 1122 is associated. Themetadata may describe the object's size, shape, material, composition orother properties.

In some implementations, the computer system of the robot 1110 may inputthe raw or processed sensor data 1115 into the machine learning model1140. The machine learning model 1140 may be a part of the computersystem of the robot 1110 and may be implemented in hardware, software,or any combination of hardware and software. The machine learning model1140 accepts as input raw or processed sensor data 1115, as well as anyother data provided to it by the computer system of the robot 1110, andoutputs an embedding 1142 that corresponds to the object 1122 identifiedfrom the sensor data 1115. For example, the machine learning model 1140may accept as input processed sensor data 1115 that includes extractedfeatures of the object 1122. The machine learning model 1140 may alsoaccept as input metadata associated with the sensor data 1115 or theobject 1122, for instance, location information indicating where thesensor data 1115 was collected. Based on the input sensor data 1115 andmetadata, the machine learning model 1140 may generate an embedding 1142related to the identified object 1122.

In some implementations, the machine learning model 1140, like the othermachine learning models discussed herein, may include a neural networkor other type of classifier. For example, the machine learning model1140 may be a parametric, non-parametric, or semi-parametric model. Itmay be a statistical model or empirical model. The machine learningmodel 1140 may include various probabilistic classifiers, includingBayes classifiers. The machine learning model 1140 may be implemented inany combination of hardware, firmware, and/or software.

The embedding 1142 may be, for instance, a multidimensional vectorrepresentation of the output of the machine learning model 1140. Forexample, one embedding representation may represent a 128-elementvector, where each element is a 64-bit integer. For clarity inillustration, the embedding 1142 is represented as a 12-digit integer.In the example of FIG. 11, the computer system of the robot 1110provides sensor data 1115 related to the doll 1122 to the machinelearning model 1140. Based on the input sensor data 1115, the machinelearning model 1140 outputs an embedding 1142 of “129057892039” relatedto the doll 1122.

In general, the embeddings 1142 generated by the machine learning model1140 are a unique function of the raw or processed sensor data 1115related to the object 1122 and the particular training state of themachine learning model 1140. For example, two machine learning models1140 that use different parameters or model structures would, ingeneral, generate two different embeddings 1142 for the same inputsensor data 1115 related to an object 1122. As a result, the embeddings1142 are generally only useful or meaningful when used with a machinelearning model 1140 that uses the same parameters and training state asthe one with which the embedding 1142 was generated.

In some implementations, the machine learning model 1140 may alsogenerate a classification related to the object 1122. For example, basedon the embedding 1142, the machine learning model 1140 may generate aclassification for the object 1122 from a set of known classifications.However, for some objects 1122, the user may desire the robot 1110 toassign a classification to the object 1122 that is different than theclassification generated by the machine learning model 1140. Forexample, the user may wish to correct an incorrect classificationgenerated by the machine learning model 1140 (e.g., the machine learningmodel 1140 classifies an object 1122 as a “pencil” when it is actually a“pen”). As another example, a user may wish to classify the object 1122more specifically or differently than the classification generated bythe machine learning model 1140 (e.g., the machine learning model 1140classifies an object 1122 as a “mug,” and the user would like the robot1110 to classify the object 1122 as “Joe's mug.”)

In cases where the user desires the robot 1110 to classify the object1122 differently than the generated classification, the user may teachthe robot 1110 to associate a new classification 1147 with the object1122 by providing user input 1145 to the robot 1110. The user mayprovide the user input 1145 to the robot 1110 by any of various means,including, for example, through voice commands, through a peripheraldevice that communicates with the robot 1110 (e.g., a keyboard, a mouse,a touchscreen), or through a wireless or wired network connection. Inexample system 1100, the user wishes the robot 1110 to classify theobject 1122 not simply as a “doll,” but as “Suzy the doll.” Accordingly,the user provides user input 1145 to the robot 1110 indicating that theobject 1122 is “Suzy the doll,” and the computer system of the robotassociates the classification 1147 “Suzy the doll” with the embedding1142 related to the object 1122.

The computer system of the robot 1110 may then store the embedding 1142and the user-input classification 1147 related to the object 1122 in thelocal cache 1150 of the robot 1110. By storing the embedding 1142 andthe classification 1147 in the robot's local cache 1150, the computingsystem of the robot 1110 can identify the object 12 as the user-providedclassification 1147 in the future without retraining the machinelearning model 1140. In some implementations, the computer system of therobot 1110 may also store some or all of the raw or processed sensordata 1115 and metadata related to an embedding 1142, as well as theversion identifier of the machine learning model used to generate theembedding 1142, in the local cache 1150.

In the example of FIG. 11, the computer system of the robot 1110 storesthe embedding 1142 of “129057892039,” the classification 1147 of “Suzythe doll,” the sensor data 1115, and the version of the machine learningmodel (version “1.0”) used by the machine learning model 1140 togenerate the embedding 1142 in entry “3” of the local cache 1150. Havingstored the embedding 1142 and the classification 1147 in the local cache1150, the next time the robot 1110 encounters the object 1122, it willbe able to identify the object 1122 as “Suzy the doll.”

In some implementations, when the robot 1110 is part of a fleet ofrobots, the robot 1110 may share embeddings 1142 from its local cache1150 with a remote server system that distributes the embeddings 1142 toother robots in the fleet. In some cases, the robot 1110 may share onlysome of the embeddings 1142 stored in its cache 1150 with other robots.For example, the robot 1110 may share embeddings 1142 that representgeneric objects, such as a chair, or a book, but the robot 1110 may notshare embeddings 1142 that represent personal objects—such as a driver'slicense or a user's favorite toy, or valuable objects, such as a pieceof jewelry or an expensive painting.

A robot 1110 may not share the embedding 1142 associated with an object1122 for any of various reasons. For example, the robot 1110 may notshare an embedding 1142 if the associated object 1122 is consideredrestricted or confidential. For example, a robot 1110 in a factory maynot share an embedding 1142 associated with a proprietary machine orinstrument. A robot 1110 in a hospital may not share an embeddingassociated with an object 1122 in a patient's room. A robot 1110 may notshare an embedding 1142 that contains personally-identifiableinformation (e.g., a driver's license or ID card). In someimplementations, the robot 1110 may not share an embedding 1142 if it isassociated with a personal object 1122. For example, a robot 1110 in ahome may not share an embedding 1142 associated the homeowner's housekey or with a resident's favorite mug.

In some cases, the robot 1110 may not share an embedding 1142 becausethe user instructs the robot 1110 not to share information related to anobject or class of objects. For example, a user may instruct the robot1110 not to share any embedding 1142 related to valuable jewelry in theuser's home or the user may instruct the robot 1110 not to share anyembedding related to an object located in the user's bedroom. Generally,the user may instruct the robot 1110 not to share a particular embedding1142 associated with any object 1122 they wish to remain private.

In some cases, the robot 1110 may share an embedding 1142 with only alimited subset of other robots. For example, the robot 1110 may share aparticular embedding 1142 with other robots in the same organization(e.g., all robots of a given company or at a given restaurant), withother robots of a particular type or domain (e.g., all hospital robotsor all kitchen-service robots), or other robots at a given location(e.g., all robots at a home). In other cases, the robot 1110 may sharean embedding 1142 with all other robots in the fleet.

To indicate which embeddings 1142 the robot 1110 will share and which itwill not share, the robot 1110 may associate each embedding 1142 with asharing status 1162. In some implementations, the robot 1110 maydetermine the sharing status 1162 of each embedding 1142 as “public”(those that are shared), “private” (those that are not shared), or“limited” (those that are shared with a subset of robots). To determinethe sharing status 1162 of an embedding 1142, the computer system of therobot 1110 may analyze information related to the embedding 1142 againsta set of sharing rules 1160.

Sharing of limited embeddings 1142 to a subset or group of robots may beaccomplished via access controlled lists, where the computer system ofthe robot 1110 maintains a list of robots with which one or more limitedembeddings 1142 may be shared. In some implementations, the computersystem of the robot 1110 may maintain different access control lists fordifferent limited embeddings 1142.

The computer system of the robot 1110 may use any of various informationrelated to the embedding 1142 to determine the sharing status 1162 ofthe embedding 1142. For example, the computer system may use theembedding 1142, itself, the classification 1147 associated with theembedding 1142, or metadata associated with the embedding 1142. In somecases, the computer system may use metadata that indicates where theobject related to the embedding 1142 was located or when the embedding1142 was generated. The computer system of the robot 1110 may also useother data or metadata associated with the embedding 1142 to determinethe sharing status 1162 of the embedding 1142. For example, the computersystem may use sensor data 1115, a classification generated by themachine learning model 1140, the location of the robot 1110 (e.g., fromGPS), other data from sensors of the robot 1110, information provided bya user, or other information to determine the sharing status of anembedding 11422.

The sharing rules 1160 provide criteria that enable the robot 1110 todetermine the sharing status of a particular embedding 1142. The sharingrules 1160 may, for instance, be stored in a memory system of the robot1110 and be accessed by a processor of the computing system of the robot1110. In some implementations, the sharing rules 1160 may bepredetermined (e.g., “default” rules). In some implementations, thesharing rules 1160 may be learned by the robot 1110 over time.

Different robots 1110 may utilize different sharing rules 1160. Forexample, a robot 1110 in a factory may use one set of sharing rules1160, while a robot 1110 in a hospital may use a different set ofsharing rules 1160. In some implementations, the robot 1110 may utilizedifferent sharing rules 1160 for objects 1122 associated with differentusers.

The sharing rules 1160 may include rules that consider any of variousfactors that impact whether the robot 1110 will share the embedding1142. For example, the sharing rules 1160 may include rules thatconsider the location of the object 1142 (e.g., in a bedroom, in akitchen, outdoors), the type of the object 1142 (e.g., a garden tool, apiece of furniture, a personal item, a machine), the classification ofthe object 1142 (e.g., a personal item such as “Joe's mug”), thelocation of the robot 1110 (e.g., a home, a factory, a restaurant, ahospital), or other factors. For example, a sharing rule may be that anyembedding 1142 associated with an object 1122 located in a user's homeis a limited embedding to be shared only with other robots in the home,or that any embedding 1142 associated with an object 1122 containingpersonally identifiable information is a private embedding.

In some examples, the robot 1110 may request the user to determine thesharing status 1162 of the embedding 1142 associated with an object1122, where the robot 1110 designates the sharing status 1162 of theembedding 1142 according to the user's response. Here, the user mayteach the robot 1110 the sharing status 1162 of the embedding byproviding input to the robot 1110 by, for example, providing a voicecommand to the robot or entering data into a robot through a peripheraldevice (e.g., a keyboard, mouse, or touchscreen).

In some implementations, a user of the robot 1110 may customize, modify,or add to the sharing rules 1160. For example, a robot 1110 may have adefault sharing rule 1160 that indicates any embedding 1142 related toan object 1122 located in a user's office has a private sharing status1162. In some cases, the user may modify the sharing rule 1160 toindicate that only embeddings associated with an object 1122 on theuser's desk will have a private sharing status 1162, while an embedding1142 associated with any object 1122 that is in the user's office butnot on his desk will have a public sharing status 1162.

In some implementations, a user of the robot 1110 may specify the groupof robots with which a limited embedding 1142 is shared. For example,the user of the robot 1110 may specify that the embedding 1142 may onlybe shared with other robots in the same location, or with other robotsin the same organization.

Based on the sharing rules 1160 and/or input from the user, the computersystem of the robot 1110 determines the sharing status 1162 eachembedding 1142 as either public or private. The computer system of therobot 1110 associates the sharing status 1162 with the embedding 1142and stores the sharing status 1162 in the local cache 1150. In someimplementations, the computer system of the robot 1110 determines thesharing status 1162 of an embedding 1142 when the embedding 1142 isgenerated by the machine learning model 1140.

In some implementations, the computer system of the robot 1110 maymaintain one or more caches that store the embeddings (e.g., one cachethat stores public embeddings and a second cache that stores limited andprivate embeddings). In some examples, the computer system of the robot1110 may allot a particular portion of a cache to store public, private,or limited embeddings and related information.

In the example system 1100, the surroundings of the robot 1110 includeprivate objects 1120 (“diamond ring” and “Suzy the doll”), a limitedobject 1121 (“Joe's mug”) and public objects 1130 (“tea cup” and“baseball cap”). For each object 1120, 1121, 1130, the robot 1110 hasgenerated an embedding from the machine learning model 1140 (based onsensor data) and determined a classification (based on user input). Foreach identified object 1120, 1121, 1130, the computer system determineda sharing status by analyzing information related to the object 1120,1121, 1130 against the set of sharing rules 1160 and stored that sharingstatus, associated with the generated embedding, in the local cache1150. Here, for example, the user designated that “Joe's mug” is to be alimited embedding, shared only with other objects in the home.

Particularly, in the example of FIG. 11, the metadata associated withthe embedding 1142 indicates that the doll 1122 was identified in auser's home. The sharing rules 1160 include a rule that states anyobject 1122 located in a user's home, unless otherwise designated by auser, is private. Based on the sharing rules 1160, the computer systemdetermines that the embedding 1142 related to the doll 1122 is private.Accordingly, the computer system of the robot 1110 stores in the localcache 1150 the sharing status 1162 of “private” associated with theembedding 1142.

In some implementations, the computer system of the robot 1110 maydetermine whether to store additional information associated with eachembedding 1142 based on the sharing status 1162 of the embedding 1142.For example, the computer system may only store raw or processed sensordata 1115 associated with an embedding 1142 if that embedding 1142 isprivate or limited.

FIG. 12 is a diagram that illustrates an example system 1200 forselectively sharing embeddings among a fleet of robots. In the system1200, one or more robots in a fleet of robots share public embeddingsfrom their local caches with a remote server system, but do not shareprivate embeddings. In some cases, the robots may share limitedembeddings with a subset of robots in the fleet. Here, the robots usethe same machine learning model, so that the embeddings generated by onerobot may be used by another robot. The remote server system thendistributes the shared embeddings to one or more robots in the fleet ofrobots. In this way, robots in the fleet are able to leverage thelearning of other robots by using public and/or embeddings generated byanother robot, enabling each robot to recognize the object associatedwith an embedding without first encountering the object itself andwithout retraining the machine learning model. FIG. 12 includes stages(A) and (B), which represent a flow of data.

System 1200 includes the robot 1110 of system 1100, which has in itslocal cache 1150 a set of embeddings generated by the robot 1110. Inexample system 1200, the local cache 1150 initially contains theprivate, limited, and private embeddings generated by the robot 1110,specifically, the limited embedding designated “1” in the local cache(“Joe's mug”), the private embeddings designated “2” and “3” in thelocal cache 1150 (“diamond ring” and “Suzy the doll”), and the publicembeddings designated “4,” and “5” in the local cache 1150 (“tea cup,”“baseball cap”).

System 1200 also includes one or more other robots 1210. The one or morerobots 1210 may be the same type of robot as robot 1110 or a differenttype of robot than 1110. Regardless of whether the robots 1110 and 1210are of the same or different types, they can use copies of the samemachine learning model for classifying objects.

System 1200 also includes a remote server system 1270. The remote serversystem 1270 may be, for example, one or more computer systems, servers,distributed computing platforms, or other processing system. In someimplementations, the remote server system 1270 may be a cloud computingsystem.

The robot 1110 and the one or more other robots 1210 exchange electronicinformation with the remote server system 1270, possibly through anetwork 1280. The network 1280 may be any communication infrastructurethat supports the two way exchange of data between the remote serversystem 1270 and the robots 1110, 1210. The network 1280 may include alocal area network (LAN), a wide area network (WAN), the Internet, orother network topology. The network 1280 may be any one or combinationof wireless or wired networks and may include Ethernet, cellulartelephony, and Wi-Fi technologies. Communications through the network1280 may be implemented through any one or combination of variousprotocols, including 802.11, Bluetooth, GSM, 3G, 4G, 5G, LTE, or othercustom or standard communication protocol. In some implementations, thenetwork 1280 may include optical data links.

In stage (A), the robots 1110, 1210 send information related to theshared (public and limited) embeddings stored in their local caches tothe server system 1270. The robots 1110, 1210 may send variousinformation related to the shared embeddings to the server system 1270.For example, the robots 1110, 1210 may send the embedding itself, theclassification, the version of the machine learning model used togenerate the embedding, and any other information or metadata related tothe shared embedding. However, the robots 1110, 1210 do not sendinformation related to private embeddings stored in their local cachesto the server system 1270.

In example system 1200, the robot 1110 sends, to the server system 1270,information associated with the limited embedding “1” and the publicembeddings “4” and “5” which are related to the “Joe's mug,” “tea cup,”and “baseball cap,” respectively. The robot 1110 does not send to theserver system 1270 information associated with the private embeddings“2” and “3,” which are related to the private objects “diamond ring” and“Suzy the doll,” respectively.

Similarly, during stage (A) the robots 1210 send to the server system1270 information associated with the public and/or limited embeddingsstored in their local caches. The robots 1210 may not send to the serversystem 1270 information associated with any private embeddings stored intheir local caches.

In stage (B), the robots 1110, 1210 receive from the server system 1270embeddings provided to the server system 1270 by the other robots. Arobot 1110, 1210 may receive information related to some or all of theshared embeddings provided to the server system 1270 by the otherrobots. The robots 1110, 1210 may store the information associated withthese received embeddings in their local caches, and they may use thereceived embeddings for object identification and classification in thesame manner that they use their generated private and public embeddings.

In some implementations, the server system 1270 may share publicembeddings with all robots 1110, 1210 in the fleet, but may sharelimited embeddings with only a specified subset of robots 1110, 1210 inthe fleet. For example, the server system 1270 may send to the robot1110 those public embeddings shared by other robots 1210, as well asthose limited embeddings shared by robots that operate in similarsettings to the robot 1110 (e.g., share limited embeddings among robotsthat operate indoors) or that operate in similar roles to the robot 1110(e.g., share limited embeddings only among robots that work infactories). The subset of robots 1110, 1210 with which a particularembedding is shared may be specified by the user of the robot thatgenerated the embedding, by the server system 1270, by a systemadministrator, or by another means.

In the example system 1200, the robot 1110 receives information relatedto a public embedding associated with one received object 1235 that isclassified as “elm tree.” Particularly, in the example of FIG. 12, therobot 1110 receives the embedding, classification, and machine learningmodel version used to generate the embedding associated with the elmtree 1235. The computer system of the robot 1110 adds the informationassociated with the received “elm tree” embedding to the local cache1150 of the robot 1110. In some implementations, the computer system ofthe robot 1110 may determine the sharing status of the receivedembedding to be “public,” since it was generated as a public embeddingby another robot 1210. In some implementations, the computer system ofthe robot 1110 may determine the sharing status of the receivedembedding to be “received,” indicating the embedding was received by therobot 1110 and generated by a different robot 1210. The computer systemof the robot 1110 may store additional metadata with the receivedembedding, for instance, the date and time the embedding was received,the other robot 1210 that generated the embedding, the location in whichthe embedding was generated, or any other information related to thereceived embedding.

Similarly during stage (B), in the example system 1200, the other robots1210 receive information related to the public embeddings sent by therobot 1110 to the server system 1270. In the example of FIG. 12, theinformation associated with the public embeddings related to the “teacup” and “baseball cap” embeddings generated by the robot 1110 aredistributed by the server system 1270 to the robots 1210. The robots1210 then store the information associated with the “tea cup” and“baseball cap” public embeddings in their local caches. In examplesystem 1200, none of the robots 1210 are in the group of robotsauthorized to receive the limited embedding associated with “Joe's mug”(i.e., none of the robots 1210 are in the same home as the robot 1110).As a result, the server system 1270 does not share the limited embedding“Joe's mug” with the robots 1210.

After adding a received embedding to its local cache, a robot will beable to use the embedding to identify and classify the objectsassociated with the received embedding. For example, in system 1200,though the robot 1110 has not previously encountered an elm tree and itsmachine learning model has not been trained to recognize an elm tree,the next time the robot 1110 encounters an elm tree, it will be able toidentify it as an “elm tree” based on the received embedding. In thisway, the robot 1110 is able to leverage the learning of other robots1210 in the fleet to improve its object identification andclassification performance.

FIG. 13 is a diagram that illustrates an example system 1300 forregeneration and storage of embeddings by a robot. In someimplementations, a robot that has private and/or limited embeddingsstored in its local cache may receive, e.g., from a remote serversystem, an update to its machine learning model. Because embeddings areunique to a given machine learning model, the private and/or limitedembeddings stored in the robot's local cache, which were generated usinga previous machine learning model, are not compatible with the updatedmachine learning model, which was trained on the public embeddings. As aresult, to enable the robot to continue to identify and classify theobjects associated with the private embeddings using the updated machinelearning model, the computer system of the robot may generate new,updated private embeddings. The computer system of the robot maygenerate updated private embeddings by inputting to the updated machinelearning model the raw and/or processed sensor data associated with theprivate embedding. The computer system of the robot then stores theregenerated private embeddings in its local cache, along with associatedthe raw and/or processed sensor data. In some implementations, thecomputer system removes the private and/or limited embeddings associatedwith the previous machine learning model from the cache. FIG. 13includes stages (A) through (C), which represent a flow of data.

System 1300 includes the same robot 1110 of systems 1100 and 1200, aswell as the remote server system 1270 from system 1200. The computingsystem of the robot 1110 includes a machine learning model 1340, as wellas a local cache 1150. In FIG. 13, the local cache of the robot 1110 isshown both before and after regeneration of the private embeddings, asindicated.

In stage (A), the robot 1110 maintains embeddings in its local cache.Initially, the robot 1110 maintains the local cache 1150 (“Local CacheBefore Regeneration”), which stores the private and public embeddingsgenerated by the robot 1110, as well as the received public embeddingsdistributed to the robot 1110 by the server system 1270. In examplesystem 1300, the robot's local cache 1150 stores one limited embeddinggenerated by the robot 1110 (embedding “1” classified as “Joe's mug”),two private embeddings generated by the robot 1110 (embeddings “2” and“3,” classified as “diamond ring” and “Suzy the doll,” respectively),two public embeddings generated by the robot 1110 (embeddings “4” and“5”, classified as “tea cup” and “toy blocks,” respectively) and onereceived public embedding (embedding “6”, classified as “elm tree”).These embeddings were all generated using version 1.0 of the machinelearning model, as indicated in the table of the local cache 1150.

In stage (B), the robot 1110 receives, from the server system 1270, anupdated machine learning model 1343. In some cases, the updated machinelearning model 1343 may have been updated and trained by the serversystem 1270 using the public embedding information shared with theserver system 1270 by the robot 1110 and other robots in the fleet. As aresult, a robot 1110 implementing the updated machine learning model1343 may be able to correctly classify objects related to the sharedpublic embeddings without referring to embeddings in its local cache1150. However, because updated machine learning model 1343 was trainedonly on public embeddings, in order to continue to correctly classifythe objects associated with the private and/or limited embeddings, therobot 1110 must update and regenerate these embeddings using the updatedmachine learning model 1343.

In some implementations, the server system 1270 may send the updatedmachine learning model 1343 to the robot 1110 via a network, such asnetwork 1280 of FIG. 12. In some examples, the updated machine learningmodel 1343 may be a full replacement for the model implemented by themachine learning model 1340 stored in the computing system of the robot1110. In some examples, the updated machine learning model 1343 mayreplace only some of the previous model implemented by the machinelearning model 1340. For example, the server system 1270 may send someor all of node weights, interlayer node connectivity information, orintralayer node connectivity information to update the machine learningmodel. In some examples, the server system 1270 may update the robot'smachine learning model 1340 by sending only those parameters of themachine learning model 1343 (e.g., node weights, node interconnectivity)that have changed from the previous model implemented by the machinelearning model 1340. In example system 1300, the machine learning model1340 of the robot 1110 previously implemented version 1.0 of the machinelearning model and the server system 1270 sent to the robot 1110 theupdated version 2.0 of the machine learning model 1343.

After receiving the updated machine learning model 1343 from the serversystem 1270, the computer system of the robot 1110 updates (e.g.,replaces) the machine learning model 1340 with the updated machinelearning model 1343. In some implementations, the computer system of therobot 1110 may update the machine learning model 1340 by storing one ormore parameters associated with the updated machine learning model 1343in a memory system of the robot 1110. In some examples, the robot 1110may overwrite or remove the previous version of the machine learningmodel from the memory of the robot's computer system.

In stage (C), the computer system of the robot 1110 regenerates theprivate and limited embeddings stored in its local cache 1150. Toregenerate a private embedding 1142, the computer system of the robot1110 inputs to the updated machine learning model 1340 the raw and/orprocessed sensor data 1115 associated with the original embedding 1142.In some examples, the sensor data 1115 includes the same raw orprocessed data 1115 used by the computer system of the robot 1110 togenerate the original embedding 1142 using a previous version of themachine learning model. The data used by the updated machine learningmodel 1140 may include raw sensor data 1115 collected by sensors on therobot 1142, processed sensor data 1115 that may include features of theobject 1122 extracted by the computer system of the robot 1110, as wellas other data, including metadata related to the embedding 1142. In somecases, the sensor data 1115 may be stored in the local cache 1150 of therobot.

Based on inputting the data 1115 to the updated machine learning model1340, the machine learning model 1340 generates a new private and/orlimited embedding 1342. The computer system of the robot 1110 associatesthis new embedding 1342 with the classification 1147 and sharing status1162 associated with the previous embedding 1142. The new embedding 1342may be different from the previous embedding 1142 stored in the localcache 1150 before the update. For example, the new embedding 1342 maycontain different values, or be of a different dimension, than theprevious embedding 1142.

The computer system of the robot 1110 then stores the regeneratedembedding data 1355, which includes the new embedding 1342, as well asthe classification 1147, sharing status 1162, and sensor data 1115associated with the embedding 1342, in the local cache 1150. In someimplementations, the computer system of the robot 1110 may also save theversion of the machine learning model 1343 used to generate the newprivate and/or limited embeddings.

In some implementations, after receiving the updated machine learningmodel 1343 or after regenerating the previous private and/or limitedembeddings, the computer system of the robot 1110 may remove from thelocal cache embeddings associated with a previous version of the machinelearning model. For example, the computer system of the robot 1110 mayremove from the local cache information related to private, public,limited, and received embeddings generated by a previous version of themachine learning model.

For example, in system 1300, after updating the machine learning model1340 with the updated version 2.0 machine learning model 1343, thecomputer system of the robot 1110 generates three new embeddings toreplace the three previous limited and private embeddings (embeddings“1”, “2”, and “3”) in its local cache 1150 (“Local Cache BeforeRegeneration”) that were generated using version 1.0 of the machinelearning model. The computer system of the robot 1110 then associatesthe classifications, sensor data, and sharing statuses of the previousembeddings with the new embeddings and stores the regenerated embeddingdata 1355 into its local cache 1150 (“Local Cache After Regeneration”).

The example of FIG. 13 shows the regeneration of private embedding “3”(1142), which is associated with object 1122, “Suzy the Doll.” Thecomputer system of the robot 1110 generates a new embedding for theobject 1122 by inputting sensor data 1115 related to the originalembedding 1142 to the updated machine learning model 1340. Here, themachine learning model 1340 implements the updated version 2.0 of themachine learning model 1343, which was provided to the robot 1110 by theserver system 1270.

The updated machine learning model 1340 generates a new privateembedding 1342 of “554039487109” related to the object 1122. Here, thenew private embedding 1342 of “554039487109” generated using machinelearning model version 2.0 (1343) is different than the privateembedding 1142 of “129057892039” generated using the previous machinelearning model version 1.0, even though the embeddings are related tothe same object 1122 and derived using the same data 1115.

In the example of FIG. 13, the computer system of the robot 1110associates the new embedding 1342 with the classification 1147 (“Suzythe doll”), sharing status 1162 (“private”), and sensor data 1115 of theprevious private embedding 1142 and then stores the new privateembedding 1342, as well as the classification 1147, the sharing status1162, the sensor data 1115, and the version of the machine learningmodel used to generate the embedding (“2.0”), in the local cache 1150(“Local Cache After Regeneration”). The computer system of the robot1110 also removes from the local cache 1150 information related to anyembeddings generated using the previous machine learning model version1.0. Here, the computer system of the robot 1110 removes from the localcache 1150 information related to the previous embeddings for theprivate objects 1120 and limited objects 1121, as well as informationrelated to the public embeddings (entries “4” and “5,” related to the“tea cup” and “baseball cap,” respectively) and the received embedding(entry “6”, related to the “elm tree”).

In some implementations, the server system 1270 may generate the updatedthe machine learning model 1343 using both the public and limitedembeddings provide by the robot 1110 (e.g., the updated model wastrained using both public and limited embeddings). In this case, therobot 1110 may be able to identify both public and limited objects usingthe updated machine learning model 1343 and the computer system of therobot 1110 may regenerate and store only the private embeddings.

The system 1300 may repeat stages (A) through (C) as new machinelearning models are provided to the robot 1110 by the server system1270. For example, the server system 1270 may send to the robot 1110 anupdated machine learning model version 3.0. In this case, the robot 1110would update its machine learning model 1140 to implement the updatedmachine learning model version 3.0 and generate new private and/orlimited embeddings to replace the embedding data 1355 that was generatedusing machine learning model version 2.0. The robot 1110 may alsogenerate new embeddings for any additional private or limited embeddingsthat were generated with machine learning model version 2.0.

FIG. 14 is a flow chart that illustrates a process 1400 for regenerationand storage of private embeddings by a robot. Briefly, the process 1400includes storing, by the robot in a local cache of the robot, firstembeddings generated using a first machine learning model, wherein thosefirst embeddings include one or more first private embeddings (1402);receiving, by the robot, a second machine learning model from a serversystem over a communication network (1404); generating, by the robot, asecond private embedding for each of the one or more first privateembeddings using the second machine learning model (1406); adding, bythe robot, the second private embeddings to a cache of the robot (1408);and removing, by the robot, the one or more first private embeddingsfrom a cache of the robot (1410). This process may be repeated each timea machine learning model of the robot is updated.

In more detail, the process 1400 includes storing, by the robot, firstembeddings generated using a first machine learning model (1402). Insome implementations, the first machine learning model may be a modelfor classifying objects identified by the robot. The machine learningmodel may include information that describes node arrangement, layerarrangement, node interconnectivity, layer connectivity, interconnectionor node weights (e.g., synaptic weights), or other parameters thatdescribe the architecture and function of the machine learning model.The machine learning model may be implemented in any combination ofhardware and software. In some implementations, one or more robots in afleet of robots may implement the same machine learning model. In someimplementations, the first machine learning model may have been providedto the robot by a server system. In some implementations, the robot maystore a copy of the first machine learning model locally in the hardwareof the robot (e.g., in a cache of the robot). In some implementations,the robot may access a copy of the first machine learning model storedon a remote server system (e.g., a cloud computing system).

The robot may store the first embeddings, which are generated using thefirst machine learning model, in a cache of the robot. An embedding maybe, for example, an output of the first machine learning model thatrepresents an object. In some implementations, the embedding may be amulti-dimensional numeric value, one or more numeric values, a vector,tensor, matrix, array, or another numeric representation.

In some implementations, the robot may generate an embedding for anobject by inputting, to the machine learning model, sensor data relatedto the object. In some implementations, the sensor data may be collectedby sensors of the robot and may include image or video data, depth data,LIDAR, radar, IR, or proximity sensor data. In some implementations, therobot may process the sensor data before inputting it to the machinelearning model to generate an embedding. For example, the robot mayprocess the sensor data to extract statistical or numeric feature valuesrelated to the object. The robot may also filter or transform the sensordata. The robot may input some or all of the raw, processed, filtered,or transformed sensor data to the machine learning model to generate anembedding. In some implementations, the robot may store some or all ofthe sensor data, including raw, processed, filtered, or transformeddata, used to generate the one or more first embeddings.

The first embeddings may include one or more first private embeddings,where the first private embeddings are not shared with other robots orthe server system. For example, a first private embedding may berepresent a private object that a user of the robot does not want to beshared with other robots or the server system (e.g., a personal object,a proprietary or confidential object, a valuable object, etc.).

The robot may determine that a first embedding is a first privateembedding by any of various techniques. For example, the robot maydetermine that a first embedding is a first private embedding byaccessing a sharing status associated with the first embedding.

In some implementations, the robot may access metadata associated withthe embedding and, based on analyzing the metadata against one or moresharing rules, the robot may determine that the embedding is a privateembedding. The metadata may be, for example, the embedding'sclassification, location, a date or time stamp, another tag or labelassociated with the embedding or the object the embedding represents.The metadata may also include other information about the embedding orthe related object generated or received by the robot. For example, themetadata may include information describing the object's size, shape,material, composition or other properties. In some implementations, therobot may store the metadata associated with the one or more firstembeddings in a cache of the robot.

In some implementations, the robot may store the one or more sharingrules in a local memory or cache of the robot. The robot may use the oneor more sharing rules to determine whether an identified embeddingassociated with an object is private. In some examples, the sharingrules may be predetermined (e.g., default rules). In some examples, therobot may receive the sharing rules from the server system. In someexamples, a user of the robot may customize or set the sharing rules. Insome examples, the robot may learn the sharing rules over time (e.g.,through machine learning or other automated learning techniques). Thesharing rules may be based on any of various factors, including metadataassociated with the embedding, the classification of the embedding, thelocation of the object associated with the embedding, the user of therobot associated with the embedding, or other factors.

In some implementations, the first embeddings stored in a cache of therobot may include one or more public embeddings that are shared with aserver system. The public embeddings may, for example, be embeddingsthat represent public objects that a user of the robot wants to sharewith other robots in the fleet of robots.

Similarly to private embeddings, the robot may determine that aparticular embedding is a public embedding by any of various techniques.For example, the robot may analyze metadata associated with a particularembedding against one or more sharing rules to determine that theembedding is a public embedding.

In some implementations, where the first embeddings include one or morefirst private embeddings and one or more first private embeddings, therobot may provide the one or more first public embeddings to the serversystem and not provide the one or more first private embeddings to theserver system.

In some implementations, the robot may determine whether to store sensordata related to one or more first embeddings based on whether aparticular embedding is private or public. For example, the robot maydetermine to store sensor data for each of the one or more first privateembeddings, but not to store sensor data for the one or more firstpublic embeddings.

The robot may receive a second machine learning model from a serversystem over a communication network (1404). The second machine learningmodel may provide the same functionality as the first machine learningmodel. In some examples, the second machine learning model may be anupdated or retrained version of the first machine learning model. Thesecond machine learning model may have been updated or trained usingdata provided by one or more robots in the fleet. In someimplementations, the second machine learning model may be a one-to-onereplacement for the first machine learning model.

Using the second machine learning model, the robot may generate a secondprivate embedding for each of the one or more first private embeddingsin the robot's cache (1406). In some implementations, the robot maygenerate a second private embedding from the stored sensor data used togenerate the one or more first private embeddings. For example, therobot may generate a second private embedding by inputting to the secondmachine learning model raw or processed sensor data used to generate afirst private embedding. In some cases, the robot may generate thesecond private embedding for an object by inputting, to the secondmachine learning model, feature values derived from the sensor data usedto generate the first private embedding for the object.

After generating the second private embeddings, the robot may add thesecond private embeddings to the cache of the robot (1408). In someexamples, the robot may also remove the one or more first privateembeddings from the cache of the robot (1410).

In some implementations, the first embeddings in the local cache mayinclude one or more public embeddings. After receiving the secondmachine learning model, the robot may remove one or more publicembeddings from the cache of the robot based on determining that anembedding is a public embedding.

In some implementations, the first embeddings in the local cache mayinclude one or more received embeddings that were received by the robotfrom the server system over a communication network. For example, thereceived embedding may have been generated by a different robot in thefleet of robots and shared, by that different robot, with the serversystem. The robot may determine that a particular embedding of the firstembeddings is a received embedding, and, after receiving the secondmachine learning model, it may remove the particular embedding from thecache based on determining that the particular embedding is one of thereceived embeddings.

A robot can use various techniques to determine whether to designateinformation about an observed object as public or private. For example,when a robot obtains sensor data describing an object, the robot cangenerate an embedding for the object based on the sensor data. The robotdetermines whether to designate the embedding as a private embedding ora public embedding, then stores the embedding and data designatingwhether the embedding is a private embedding or a public embedding.

To determine whether information about an observed object should bepublic (e.g., shared with a server system and other robots) or private,the robot can use sharing rules indicating one or more restrictions onthe sharing of information obtained by the robot. The restrictions maylimit sharing of information observed by the robot at a time or place,or may limit information describing objects having an object type orobject characteristic. Similarly, the restrictions may limit sharing ofinformation that has certain labels applied, for example, personaldesignations such as a user specifying that an item is a person'spersonal “favorite” item. In some instances, a user may provide specificinstructions that information about an object should or should not beshared. In general, the restrictions and sharing rules may be set by auser, or may be set by the robot or the server system that facilitatessharing.

For example, objects observed in some places (e.g., outdoors and inpublic places) may be set a public, while objects observed in privateplaces (e.g., private residences, or places that a user designates asprivate) may be kept private. When a robot observes an item, the robotcan determine a location of the object or the robot. The robot can thendetermine whether the location is within a predetermined area for whichinformation is not shared, e.g., a room of a residence that the user mayhave marked as private, or a public place where observations can beshared. Based on determining that the location is within thepredetermined area, the robot designating the embedding as public orprivate accordingly.

As another example, a robot can determine an object type for an objectobserved by the robot, determine that the object type is one of apredetermined set of object types which have been designated for privateor public status, and the robot can determine whether to designate theembedding as a private embedding based on the object type determination.

In general, a robot can access sharing rules and then determine, basedon the sensor data for the object or results of processing the sensordata, that the sharing rules restrict sharing of information for theobject described by the sharing data. Based on determining that thesharing rules restrict sharing of information for the object, the robotdesignates the embedding for the object as a private embedding. Userinput can indicating one or more criteria comprising a time, place,object type, or object characteristic for which sharing of informationis restricted. In response to this input, the robot can store a sharingrule that designates embeddings for objects meeting the one or morecriteria as private embeddings. Determining whether to designate theembedding as a private embedding or a public embedding can includedetermining whether the embedding satisfies the one or more criteria.

Embodiments of the invention and all of the functional operationsdescribed in this specification may be implemented in digital electroniccircuitry, or in computer software, firmware, or hardware, including thestructures disclosed in this specification and their structuralequivalents, or in combinations of one or more of them. Embodiments ofthe invention may be implemented as one or more computer programproducts, i.e., one or more modules of computer program instructionsencoded on a computer-readable medium for execution by, or to controlthe operation of, data processing apparatus. The computer readablemedium may be a non-transitory computer readable storage medium, amachine-readable storage device, a machine-readable storage substrate, amemory device, a composition of matter effecting a machine-readablepropagated signal, or a combination of one or more of them. The term“data processing apparatus” encompasses all apparatus, devices, andmachines for processing data, including by way of example a programmableprocessor, a computer, or multiple processors or computers. Theapparatus may include, in addition to hardware, code that creates anexecution environment for the computer program in question, e.g., codethat constitutes processor firmware, a protocol stack, a databasemanagement system, an operating system, or a combination of one or moreof them. A propagated signal is an artificially generated signal, e.g.,a machine-generated electrical, optical, or electromagnetic signal thatis generated to encode information for transmission to suitable receiverapparatus.

A computer program (also known as a program, software, softwareapplication, script, or code) may be written in any form of programminglanguage, including compiled or interpreted languages, and it may bedeployed in any form, including as a stand-alone program or as a module,component, subroutine, or other unit suitable for use in a computingenvironment. A computer program does not necessarily correspond to afile in a file system. A program may be stored in a portion of a filethat holds other programs or data (e.g., one or more scripts stored in amarkup language document), in a single file dedicated to the program inquestion, or in multiple coordinated files (e.g., files that store oneor more modules, sub programs, or portions of code). A computer programmay be deployed to be executed on one computer or on multiple computersthat are located at one site or distributed across multiple sites andinterconnected by a communication network.

The processes and logic flows described in this specification may beperformed by one or more programmable processors executing one or morecomputer programs to perform functions by operating on input data andgenerating output. The processes and logic flows may also be performedby, and apparatus may also be implemented as, special purpose logiccircuitry, e.g., an FPGA (field programmable gate array) or an ASIC(application specific integrated circuit).

Processors suitable for the execution of a computer program include, byway of example, both general and special purpose microprocessors, andany one or more processors of any kind of digital computer. Generally, aprocessor will receive instructions and data from a read only memory ora random access memory or both. The essential elements of a computer area processor for performing instructions and one or more memory devicesfor storing instructions and data. Generally, a computer will alsoinclude, or be operatively coupled to receive data from or transfer datato, or both, one or more mass storage devices for storing data, e.g.,magnetic, magneto optical disks, or optical disks. However, a computerneed not have such devices. Moreover, a computer may be embedded inanother device, e.g., a tablet computer, a mobile telephone, a personaldigital assistant (PDA), a mobile audio player, a Global PositioningSystem (GPS) receiver, to name just a few. Computer readable mediasuitable for storing computer program instructions and data include allforms of non-volatile memory, media, and memory devices, including byway of example semiconductor memory devices, e.g., EPROM, EEPROM, andflash memory devices; magnetic disks, e.g., internal hard disks orremovable disks; magneto optical disks; and CD ROM and DVD-ROM disks.The processor and the memory may be supplemented by, or incorporated in,special purpose logic circuitry.

To provide for interaction with a user, embodiments of the invention maybe implemented on a computer having a display device, e.g., a CRT(cathode ray tube) or LCD (liquid crystal display) monitor, fordisplaying information to the user and a keyboard and a pointing device,e.g., a mouse or a trackball, by which the user may provide input to thecomputer. Other kinds of devices may be used to provide for interactionwith a user as well; for example, feedback provided to the user may beany form of sensory feedback, e.g., visual feedback, auditory feedback,or tactile feedback; and input from the user may be received in anyform, including acoustic, speech, or tactile input.

Embodiments of the invention may be implemented in a computing systemthat includes a back end component, e.g., as a data server, or thatincludes a middleware component, e.g., an application server, or thatincludes a front end component, e.g., a client computer having agraphical user interface or a Web browser through which a user mayinteract with an implementation of the invention, or any combination ofone or more such back end, middleware, or front end components. Thecomponents of the system may be interconnected by any form or medium ofdigital data communication, e.g., a communication network. Examples ofcommunication networks include a local area network (“LAN”) and a widearea network (“WAN”), e.g., the Internet.

The computing system may include clients and servers. A client andserver are generally remote from each other and typically interactthrough a communication network. The relationship of client and serverarises by virtue of computer programs running on the respectivecomputers and having a client-server relationship to each other.

Although a few implementations have been described in detail above,other modifications are possible. For example, while a clientapplication is described as accessing the delegate(s), in otherimplementations the delegate(s) may be employed by other applicationsimplemented by one or more processors, such as an application executingon one or more servers. In addition, the logic flows depicted in thefigures do not require the particular order shown, or sequential order,to achieve desirable results. In addition, other actions may beprovided, or actions may be eliminated, from the described flows, andother components may be added to, or removed from, the describedsystems. Accordingly, other implementations are within the scope of thefollowing claims.

While this specification contains many specific implementation details,these should not be construed as limitations on the scope of anyinvention or of what may be claimed, but rather as descriptions offeatures that may be specific to particular embodiments of particularinventions. Certain features that are described in this specification inthe context of separate embodiments can also be implemented incombination in a single embodiment. Conversely, various features thatare described in the context of a single embodiment can also beimplemented in multiple embodiments separately or in any suitablesubcombination. Moreover, although features may be described above asacting in certain combinations and even initially claimed as such, oneor more features from a claimed combination can in some cases be excisedfrom the combination, and the claimed combination may be directed to asubcombination or variation of a sub combination.

Similarly, while operations are depicted in the drawings in a particularorder, this should not be understood as requiring that such operationsbe performed in the particular order shown or in sequential order, orthat all illustrated operations be performed, to achieve desirableresults. In certain circumstances, multitasking and parallel processingmay be advantageous. Moreover, the separation of various system modulesand components in the embodiments described above should not beunderstood as requiring such separation in all embodiments, and itshould be understood that the described program components and systemscan generally be integrated together in a single software product orpackaged into multiple software products.

Particular embodiments of the subject matter have been described. Otherembodiments are within the scope of the following claims. For example,the actions recited in the claims can be performed in a different orderand still achieve desirable results. As one example, the processesdepicted in the accompanying figures do not necessarily require theparticular order shown, or sequential order, to achieve desirableresults. In certain implementations, multitasking and parallelprocessing may be advantageous.

What is claimed is:
 1. A computer-implemented method comprising:obtaining, by a robot, sensor data indicating characteristics of anobject; determining, by the robot, a classification for the object;generating, by the robot, a first embedding for the object using amachine learning model stored by the robot; storing, by the robot, thegenerated first embedding and data indicating the classification for theobject in a local cache of the robot; sending, by the robot, thegenerated first embedding and the data indicating the classification toa server system over a communication network; receiving, by the robot, asecond embedding and a corresponding classification from the serversystem over the communication network, wherein the received secondembedding is generated by a second robot and corresponds to a secondobject; and storing, by the robot, the received second embedding andcorresponding classification in the local cache of the robot.
 2. Thecomputer-implemented method of claim 1, further comprising: using, bythe robot, the first embedding or the second embedding in the localcache to recognize one or more objects in an environment of the robot.3. The computer-implemented method of claim 2, wherein using, by therobot, the first embedding or the second embedding in the local cache torecognize one or more objects in an environment of the robot comprises:generating, by the robot, sensor data describing a particular object inthe environment of the robot; and generating, by the robot, an embeddingfor the particular object using the machine learning model and thesensor data describing the particular object; comparing, by the robot,the embedding for the particular object with the first embedding and thesecond embedding; and assigning, by the robot, a classification for theparticular object based on the comparison of the embedding for theparticular object with the first embedding and the second embedding. 4.The computer-implemented method of claim 1, wherein the machine learningmodel is a first machine learning model, further comprising: receiving,by the robot, a second machine learning model from the server systemover the communication network; using, by the robot, the second machinelearning model to recognize one or more objects; and removing, from thelocal cache of the robot, embeddings generated using the first machinelearning model.
 5. The computer-implemented method of claim 1, whereinsending the generated embedding comprises designating the generatedembedding for sharing with other robots.
 6. The computer-implementedmethod of claim 4, wherein designating the generated embedding forsharing with other robots comprises sending the generated embedding witha label or metadata designating that the embedding should be shared orsending the generated embedding using an application programminginterface for sharing embeddings.
 7. The computer-implemented method ofclaim 1, further comprising storing, by the robot, the sensor data usedto generate input to the machine learning model used to generate theembedding.
 8. The computer-implemented method of claim 1, whereingenerating the first embedding for the object using the machine learningmodel stored by the robot comprises: generating the first embeddingbased on processing feature data, extracted from the sensor data for theobject, using the machine learning model.
 9. The computer-implementedmethod of claim 8, wherein the machine learning model is a neuralnetwork model, and wherein the first embedding is derived from output atan output layer of the neural network model.
 10. Thecomputer-implemented method of claim 8, wherein the machine learningmodel is a neural network model, and wherein the first embedding isderived from data indicating activations at a hidden layer of the neuralnetwork model.
 11. A robot comprising: one or more processors; and oneor more machine-readable media storing instructions that, when executedby the one or more processors, cause the robot to perform operationscomprising: obtaining, by the robot, sensor data indicatingcharacteristics of an object; determining, by the robot, aclassification for the object; generating, by the robot, a firstembedding for the object using a machine learning model stored by therobot; storing, by the robot, the generated first embedding and dataindicating the classification for the object in a local cache of therobot; sending, by the robot, the generated first embedding and the dataindicating the classification to a server system over a communicationnetwork; receiving, by the robot, a second embedding and a correspondingclassification from the server system over the communication network,wherein the received second embedding is generated by a second robot andcorresponds to a second object; and storing, by the robot, the receivedsecond embedding and corresponding classification in the local cache ofthe robot.
 12. The robot of claim 11, further comprising: using, by therobot, the first embedding or the second embedding in the local cache torecognize one or more objects in an environment of the robot.
 13. Therobot of claim 12, wherein using, by the robot, the first embedding orthe second embedding in the local cache to recognize one or more objectsin an environment of the robot comprises: generating, by the robot,sensor data describing a particular object in the environment of therobot; and generating, by the robot, an embedding for the particularobject using the machine learning model and the sensor data describingthe particular object; comparing, by the robot, the embedding for theparticular object with the first embedding and the second embedding; andassigning, by the robot, a classification for the particular objectbased on the comparison of the embedding for the particular object withthe first embedding and the second embedding.
 14. The robot of claim 11,wherein the machine learning model is a first machine learning model,further comprising: receiving, by the robot, a second machine learningmodel from the server system over the communication network; using, bythe robot, the second machine learning model to recognize one or moreobjects; and removing, from the local cache of the robot, embeddingsgenerated using the first machine learning model.
 15. The robot of claim11, wherein sending the generated embedding comprises designating thegenerated embedding for sharing with other robots.
 16. One or morenon-transitory machine-readable media storing instructions that, whenexecuted by one or more processing devices, cause a robot to performoperations comprising: obtaining, by the robot, sensor data indicatingcharacteristics of an object; determining, by the robot, aclassification for the object; generating, by the robot, a firstembedding for the object using a machine learning model stored by therobot; storing, by the robot, the generated first embedding and dataindicating the classification for the object in a local cache of therobot; sending, by the robot, the generated first embedding and the dataindicating the classification to a server system over a communicationnetwork; receiving, by the robot, a second embedding and a correspondingclassification from the server system over the communication network,wherein the received second embedding is generated by a second robot andcorresponds to a second object; and storing, by the robot, the receivedsecond embedding and corresponding classification in the local cache ofthe robot.
 17. The one or more non-transitory machine-readable media ofclaim 16, further comprising: using, by the robot, the first embeddingor the second embedding in the local cache to recognize one or moreobjects in an environment of the robot.
 18. The one or morenon-transitory machine-readable media of claim 17, wherein using, by therobot, the first embedding or the second embedding in the local cache torecognize one or more objects in an environment of the robot comprises:generating, by the robot, sensor data describing a particular object inthe environment of the robot; and generating, by the robot, an embeddingfor the particular object using the machine learning model and thesensor data describing the particular object; comparing, by the robot,the embedding for the particular object with the first embedding and thesecond embedding; and assigning, by the robot, a classification for theparticular object based on the comparison of the embedding for theparticular object with the first embedding and the second embedding. 19.The one or more non-transitory machine-readable media of claim 16,wherein the machine learning model is a first machine learning model,further comprising: receiving, by the robot, a second machine learningmodel from the server system over the communication network; using, bythe robot, the second machine learning model to recognize one or moreobjects; and removing, from the local cache of the robot, embeddingsgenerated using the first machine learning model.
 20. The one or morenon-transitory machine-readable media of claim 16, wherein sending thegenerated embedding comprises designating the generated embedding forsharing with other robots.